[Question]In Fred the Farmer's barn, there were 100 horses, 29 sheep, and 9 chickens. Brian bought half of the animals and sold them at the market. Jeremy then gifted Fred an additional 37 goats. If exactly half of the animals in the barn are male animals, how many male animals are there in the barn?
[Answer]Fred's barn started with 100 + 29 + 9 = 138 animals. Brian bought half of these, so there were 138 / 2 = 69 remaining. After Jeremy gifted Fred 37 goats, there were 69 + 37 = 106 animals in the barn. So, 106 / 2 = 53 of these animals are male. The answer is 53.
Q: On a shopping trip in a crowded store, Josie had to wait 3 minutes for a cart, 13 minutes for an employee to unlock a cabinet to get her a product, 14 minutes for a stocker to restock a shelf with what she wanted, and 18 minutes in line to check out. Her shopping trip took an hour and a half. How many minutes did Josie spend shopping instead of waiting?
A: There are 60 minutes in an hour, so the trip took 1 1 / 2 * 60 = 90 minutes. Josie spent 3 + 13 + 14 + 18 = 48 minutes waiting. Thus, she spent 90 - 48 = 42 minutes shopping. The answer is 42.
Question: Cheryl got angry with her sister and decided to run away from home. She walked 2 miles every hour for 3 hours. Then she got homesick and walked back home. How many miles did Cheryl walk in total?
Answer: Cheryl walked 2 miles x 3 hours = 6 miles. Once Cheryl was 6 miles away, she walked back home, another 6 miles, so she walked 6 + 6 = 12 miles. The answer is 12.
[Question]Brian loves watching animal videos online. He watches a 4-minute video of cats. He then watches a video twice as long as the cat video involving dogs. He finishes up his video watching for the day by watching a video on gorillas that's twice as long as the previous two videos combined. How many minutes does Brian spend watching animal videos?
[Answer]Brian begins by watching a 4 - minute video, and since the second video is twice as long that means the second video is 4 * 2 = 8 minutes. The first two videos combined therefore for a 4 + 8 = 12 minute run time. Since the third video is twice as long as the first two videos put together, that means it is 12 * 2 = 24 minutes in length. The total length of time spent is therefore 24 + 12 = 36 minutes. The answer is 36.
Q: Viviana has five more chocolate chips than Susana, while Susana has 3/4 as many vanilla chips as Viviana. If Viviana has 20 Vanilla chips and Susana 25 chocolate chips, calculate the total number of chips they have together.
A: Viviana has 20 Vanilla chips. Susana has 25 chocolate chips. Viviana has 25 + 5 = 30 chocolate chips. Susana has 3 / 4 * 20 = 15 Vanilla chips. They have 30 + 25 = 55 chocolate chips together. Together they have 20 + 15 = 35 vanilla chips. Together they have 35 + 55 = 90 chips. The answer is 90.
Question: Sean buys 3 cans of soda, 2 soups, and 1 sandwich. Each soup cost as much as the 3 combined sodas. The sandwich cost 3 times as much as the soup. If the soda cost $1 how much did everything cost together?
Answer:

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
The soda cost 3 * 1 = $3. So the soups cost 2 * 3 = $6. The sandwich cost 3 * 3 = $9. So the total cost of everything was 3 + 6 + 9 = $18. The answer is 18.