If these are answers in an exercise, the requirement is probably to write a complete sentence, ie "Who likes Tom? Mary likes Tom". Just the name of the person is never correct.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.