Miles pays $37.50 for 5 jars of jam and 2 pies and emma pays $40.50 for 4 jars of jam and 3 pies

Write a system of equations that can be used to determine the cost of one jar of jam and one pie

Let x be the cost of one jar of jam and y be the cost of one pie.

From the given information, we can write the following equations:

5x + 2y = 37.50 (Miles pays $37.50 for 5 jars of jam and 2 pies)
4x + 3y = 40.50 (Emma pays $40.50 for 4 jars of jam and 3 pies)