Consider the Q and A. Q: A camping site recorded a total of 150 campers for the past three weeks. Two weeks ago, there were 40 campers which was 10 more than the number of campers three weeks ago. How many campers were there last week?
A: 80
What is the step-by-step reasoning process?
Step-by-step reasoning process: Three weeks ago, there were 40 - 10 = 30 campers. The total number of campers from three to two weeks ago is 30 + 40 = 70. Hence, there were 150 - 70 = 80 campers last week.

Consider the Q and A. Q: Brian has twice as many tennis balls as Frodo, who has 8 more than Lily. If Lily has 3 tennis balls, how many does Brian have?
A: 22
What is the step-by-step reasoning process?
Step-by-step reasoning process: Frodo has 8 tennis balls more than Lily (who has 3), so he has 8 + 3 = 11 tennis balls. Brian has twice as many as Frodo, which makes 11 * 2 = 22 tennis balls.

Consider the Q and A. Q: John's camera broke so he decided to rent one for 4 weeks. It was a $5000 camera and the rental fee was 10% of the value per week. His friend who was there when it broke agreed to pay 40% of the rental fee. How much did John pay?
A: 1200
What is the step-by-step reasoning process?
Step-by-step reasoning process: The rental fee is 5000 * .1 = $500 per week. So it cost 500 * 4 = $2000. His friend pays 2000 * .4 = $800. So he pays 2000 - 800 = $1200.

Consider the Q and A. Q: Hannah's family has ten pigs on their farm. They also have three fewer than twice as many cows as pigs and six more goats than cows. How many animals do they have on their farm?
A: 50
What is the step-by-step reasoning process?
Step-by-step reasoning process:

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
Twice the number of pigs is 10 x 2 = 20. So, Hannah's family has 20 - 3 = 17 cows. They also have 17 + 6 = 23 goats. So, they have a total of 10 + 17 + 23 = 50 animals on their farm.