At the local harvest festival Marty bought 2 pumpkin pie slices and 2 cups of hot chocolate $10.00. Patty bought 4 slices of pie and 5 cups of hot chocolate for $22.50. How much is a slice of pumpkin pie and how much is a cup of hot chocolate?

Respuesta :

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