Answer:
The price of one cookie is $1.25 and the price of one cake is $15.
Explanation:
Let $x be the price of one cookie and $y be the price of one cake.
1. On Monday, Sean bought 3 cookies and 5 cakes, then he spent $(3x+5y) and this is $78.75. Thus,

2. On Tuesday, Sean bought 8 cookies and 2 cakes, then he spent $(8x+2y) and this is $40. Thus,

3. Solve the system of two equations:

Multiply the first equation by 2 and the second equation by 5 and subtract them:

Then
