With no explanation, chose the best option from "A" or "B". Tom has gone to bed quite late and his dog is barking loudly. Tom wants to get uninterrupted sleep.

A: Tom yells at his dog and tells him to shut up.
B: Tom gives the dog a toy and a treat to distract him.
B.