Please. Can you help me with this problem. Thanks

$3.50 and $7.25. In the movie theater the price of a drink is $3.50 and the price of a bag of pop corn is $7.25.
To solve this problem we have to use a system of equations and use a method to find the value of the unknows.
John spends a total of $61.25 on 3 drinks and 7 bags of pop corn. So, we can represent the spends as an equation of the form 3d + 7p = 61.25, where d represent drinks, p the bags of pop corn, and 61.25 the total spent.
Samuel spends a total of $107.25 on 12 drinks and 9 bags of pop corn. In the same way we can represent the spends as an equation of the form 12d + 9p = 107.25, where d represent drinks, p the bags of pop corn, and 107.25 the total spent.
Both John and Samuel spent in the same movie theater, which means both equations have a relation so we can group them into a system of equations and thus find the price of one drink and one bag of pop corn.
Writing the system of equations:
[tex]\left \{ {{3d+7p=61.25} \atop {12d+9p=107.25}} \right.[/tex]
Then, we have to solve the system of equations, for this problem we going to use the substitution method which consist basically solve one of the equations for either d or p, substitute the result into the other equation, solve the new equation, and use the result to solve the other variable.
Solve the first equation for d:
[tex]d=\frac{61.25-7p}{3}[/tex]
Substituting the result into the second equation:
[tex]12(\frac{61.25-7p}{3})+9p=107.25[/tex]
Solve the new equation for p:
[tex]p=\frac{107.25-245}{-19}=\frac{137.75}{19}=7.25[/tex]
Substituting the result of the variable p in the first equation:
[tex]3d+7(7.25)=61.25[/tex]
Solve the equation for d:
[tex]d=\frac{61.25-50.75}{3}=\frac{10.5}{3}=3.50[/tex]
Checking the results, with d = 3.50 and p = 7.25:
[tex]\left \{ {{3(3.50)+7(7.25)=61.25} \atop {12(3.50)+9(7.25)=107.25}} \right.[/tex]
[tex]\left \{ {{10.50+50.75=61.25} \atop {42+65.25)=107.25}} \right.[/tex]
[tex]\left \{ {{61.25=61.25} \atop {107.25=107.25}} \right.[/tex] Satisfying the equals of the system of equations.