Learn English – Using “its” after “both”

grammargrammaticality

Sorry for the vague title. I came across this sentence while reading the book A Dash of Style:

The gracious semicolon wouldn't exist if it weren't for the failure of both the comma and period to fulfill its task.

Could you explain to me how its is correct up there? In my view it should be their.

Best Answer

Since two incorrect answers have now been given to this question (one removed again), I thought the correct answer that Jim already gave in a comment ought to be posted as an answer, too:

‘Its’ here is referring back to the semicolon, not to the comma or the period.

To paraphrase:

If it weren't for the fact that both the comma and the full stop were failing so badly at performing the task that the semicolon is now charged with, there would never have been a semicolon (since the comma and the full stop would have been sufficient).