Final answer:
The sentence with correct punctuation is 'Tom likes to swim; he doesn't like to sunbathe.'
Step-by-step explanation:
The sentence that has correct punctuation is:
Tom likes to swim; he doesn't like to sunbathe.
In this sentence, a semicolon is used to separate two independent clauses. The semicolon indicates a stronger pause than a comma but not as strong as a period. It is typically used when the two clauses are closely related.
For example:
Tom likes to swim - this is the first independent clause.
He doesn't like to sunbathe - this is the second independent clause.
The semicolon in between them is used to show that they are related but still separate thoughts.
Learn more about Correct punctuation in sentences