Q: The ratio of boys to girls in a math class is 5:8. How many girls are in the class if the total number of students in the class is 260?
A: If the ratio of boys to girls in the math class is 5:8, the total ratio of the number of boys and girls in the math class is 5 + 8 = 13. The fraction that represents the number of boys in the class is 5 / 13, and since there are 260 students in the class, the number of boys in the class is 5 / 13 * 260 = 100. The number of girls in the class is 260 - 100 = 160. The answer is 160.
Question: Mildred and Candice went to the market. Mildred spent $25 while Candice spent $35. If their mom gave them $100 to spend, how much will be left with them after spending?
Answer: Mildred and Candice spent $25 + $35 = $60 in total. Therefore, they were left with $100 - $60 = $40 after spending. The answer is 40.
[Question]Sandra wants to buy some sweets. She saved $10 for this purpose. Her mother gave her an additional $4, and her father twice as much as her mother. One candy costs $0.5, and one jelly bean $0.2. She wants to buy 14 candies and 20 jelly beans. How much money will she be left with after the purchase?
[Answer]Sandra's father gave her $4 * 2 = $8. So Sandra has in total $8 + $4 + $10 = $22. She wants 14 candies, so she is going to pay 14 candies * $0.50 / candy = $7 for them. She wants also 20 jellybeans, and they're going to cost 20 jellybeans * $0.20 / jellybean = $4. So after the purchase, she will be left with $22 - $4 - $7 = $11. The answer is 11.
Q: Dennis wants to buy 4 pairs of pants from the store which cost $110.00 each with a 30% discount and he also wants to buy 2 pairs of socks which cost $60.00 with a 30% discount. How much money will Dennis have to spend in total after he bought all the items he wants after the discount?
A: Dennis wants to buy 4 pairs of pants which cost 110x4 = $440. And he also wants to buy 2 pairs of socks that cost 60x2 = $120. The total amount he needs to spend without the discount is 440 + 120 = $560. The discount he will have amounts to $560x.0.30 = $168.00. So the total amount he needs to spend after deducting the discount from the total amount is 560 - 168 = $392. The answer is 392.
Question: Mr. and Mrs. McPherson have to renew their rent by the end of the year. They agreed that Mrs. McPherson would raise 30% of the money. If their rent is $1200 per year, how much does Mr. McPherson need to raise to complete the rent?
Answer: 30% of $1200 is (30 / 100) * $1200 = $360. Mrs. McPherson will pay $360 leaving $1200 - $360 = $840 which Mr. McPherson will have to raise. The answer is 840.
Q: Mary has 3 times as much candy as Megan. Mary then adds 10 more pieces of candy to her collection. If Megan has 5 pieces of candy, how many does Mary have in total?
A:

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
Mary has 5 * 3 = 15 pieces of candy. She adds more, which brings her total to 15 + 10 = 25 pieces of candy. The answer is 25.