Beth and Sarah are selling candy for a school fundraiser. Customers can buy small boxes of candy and large boxes of candy. Beth sold 9 small boxes of candy and 10 large boxes of candy for a total of $297. Sarah sold 8 small boxes of candy and 5 large boxes of candy for a total of $194.

What is the cost of one small box of candy, and what is the cost of one large box of candy?

Hint: Solve a system of two equations using the elimination method.