Answer:
[tex]y =x+5[/tex]
[tex]2x+5 y = 95[/tex]
Number of packages of hamburgers bought = 15
Number of packages of corndogs bought = 10
Step-by-step explanation:
Cost of a package of corndogs = $2.00
Cost of a package of hamburgers = $5.00
Let number of packages of corndogs bought = [tex]x[/tex]
Let number of packages of hamburgers bought = [tex]y[/tex]
Number of packages of hamburgers bought are 5 more than the cordogs.
The first equation can be written as:
[tex]y =x+5 ..... (1)[/tex]
Total money spent = $95.00
Money spent on corndogs = Price of one package of corndogs [tex]\times[/tex] Number of packages of corndogs bought = $2[tex]x[/tex]
Money spent on hamburgers = Price of one package of hamburgers [tex]\times[/tex] Number of packages of hamburgers bought = $5[tex]y[/tex]
As per question statement, the second equation can be written as:
[tex]2x+5 y = 95 ..... (2)[/tex]
Putting the value from equation (1) to equation (2):
[tex]2x+5(x+5) = 95\\\Rightarrow 7x =95-25\\\Rightarrow x = 10[/tex]
Putting this value in the equation (1):
[tex]y = 10+5\\\Rightarrow y =15[/tex]
Number of packages of hamburgers bought = 15
Number of packages of corndogs bought = 10