Final answer:
The first sentence contains a dangling modifier, while the second sentence contains a misplaced modifier. The third sentence is grammatically correct.
Step-by-step explanation:
The first sentence, "Standing on the dock, the boat didn't look safe to the sailors," contains a dangling modifier. A dangling modifier is a phrase or clause that does not clearly and logically modify a word or phrase in the sentence. In this case, the modifier "standing on the dock" does not have a clear subject to modify, as it is unclear who or what is standing on the dock. To correct this, you could rewrite the sentence as "The sailors didn't think the boat looked safe as they stood on the dock."
The second sentence, "Before moving to New York, Miami had been their home," contains a misplaced modifier. A misplaced modifier is a word, phrase, or clause that is misplaced in a sentence, causing confusion or ambiguity. In this case, the modifier "Before moving to New York" seems to be modifying "Miami," but it should actually be modifying the subject of the sentence. To correct this, you could rewrite the sentence as "Before they moved to New York, Miami had been their home."
The third sentence, "We saw a herd of sheep on the way to our hotel in Paris," does not contain a misplaced or dangling modifier. It is a grammatically correct sentence with a clear subject and modifier.