High School

Castel and Gabriella are selling pies for a school fundraiser. Customers can buy apple pies and lemon meringue pies.

Castel sold 6 apple pies and 4 lemon meringue pies for a total of $80. Gabriella sold 6 apple pies and 5 lemon meringue pies for a total of $94.

Write a system of equations that represents the number of each type of pie:

Let [tex]x[/tex] be the cost of each apple pie, and [tex]y[/tex] be the cost of each lemon meringue pie.

1. Castel's equation:
\[ 6x + 4y = 80 \]

2. Gabriella's equation:
\[ 6x + 5y = 94 \]

Solve the system of equations to find the values of [tex]x[/tex] and [tex]y[/tex].