For a school fundraiser, Tory sold 28 bags of popcorn and 40 candy bars and made $282. Jake sold 17 bags of popcorn and 20 candy bars and made $160.50.
Write a system of equations which represents this situation.
A. 28p + 17p and 40c + 20c = 160.50
B. 28p + 20c = 282 and 17p + 40c = 160.50
C. 28p + 40c = 282 and 17 + 20c = 160.50
D. 28p + 40c + 17p + 20c = 282 + 160.50