Answer:
1 cup of hot chocolate is $2.5
1 slice of pumpkin pie is $2.5
Step-by-step explanation:
Represent Pumpkin Pie with P and Hot Chocolate with C:
Marty:
[tex]2P + 2H = 10[/tex]
Patty:
[tex]4P + 5H = 22.5[/tex]
So, we have the following set of equation:
[tex]2P + 2H = 10[/tex] -------- (1)
[tex]4P + 5H = 22.5[/tex] -------- (2)
Multiply the first equation by 2
[tex]2(2P + 2H = 10)[/tex]
[tex]4P + 4H = 20[/tex] -------- (3)
Subtract (3) from (2)
[tex]4P + 5H = 22.5[/tex]
[tex]4P + 4H = 20[/tex]
--------------------------
[tex]5H - 4H = 22.5 - 20[/tex]
[tex]H = 2.5[/tex]
Substitute 2.5 for H in [tex]2P + 2H = 10[/tex]
[tex]2P + 2 * 2.5 = 10[/tex]
[tex]2P + 5 = 10[/tex]
[tex]2P = 10 - 5[/tex]
[tex]2P = 5[/tex]
Divide through by 2
[tex]P = \frac{5}{2}[/tex]
[tex]P=2.5[/tex]
Hence, 1 cup of hot chocolate is $2.5 and 1 slice of pumpkin pie is $2.5