Final answer:
The cost of an apple pie is $4 and the cost of a pumpkin pie is $7.
Step-by-step explanation:
Let's assume the cost of an apple pie is x dollars and the cost of a pumpkin pie is y dollars.
According to the given information, Juan sold 3 apple pies and 1 pumpkin pie for a total of $25. So we can write the equation:
3x + y = 25
Similarly, Jasmine sold 9 apple pies and 7 pumpkin pies for a total of $103:
9x + 7y = 103
To find the costs of an apple pie and a pumpkin pie, we can solve these equations using the substitution method or the elimination method. I will use the elimination method:
-
- Multiply the first equation by 7 and the second equation by 3 to eliminate the variable x.
-
- Subtract the second equation from the first equation.
-
- Solve the resulting equation to find the value of y.
-
- Substitute the value of y into either of the original equations to find the value of x.
After solving, we find that the cost of an apple pie is $4 and the cost of a pumpkin pie is $7.