You are given a sentence and a question. You're expected to write the correct answer based on the sentence.

Example Input: Sentence: A cat and a dog both run at 5 mph. Question: If the cat runs for a longer time then the dog, which will have gone the greater distance?
Example Output: cat

Example Input: Sentence: Jack and Tom were golfing and they each had their own golf cart. They decided to race to the next hole. Jack's cart was carrying an extra 400 pounds more than Tom's cart. Question: Who got ahead first?
Example Output: Tom

Example Input: Sentence: David and Joe live together and go out at the same time. David drove his car and Joe rode his skateboard. Question: After one hour, who traveled less distance?
Example Output:
Joe