A horse is a logical pet for the King of Gondor.
As for Frodo, I would say a cat because he had bad experiances with dogs in the past.