let Â
x = the number of bags of candy Â
y = the number of bags of cookies Â
There were 3 more bags of cookies than candy sold: Â
y = x + 3 Â
Bags of candy cost $7.50, and bags of cookies cost $4.50, and sales equaled $37.50: Â
7.50x + 4.50y = 37.50 Â
by solving the system of equations: Â
y = x + 3 Â
7.50x + 4.50y = 37.50 Â
we find:
x = 2 bags of candies Â
y = 5 bags of cookies