We have to create system of equation
Assume x - number of hot dogs, y - number of hamburgers
We have
[tex] \left \{ {{y+x=177} \atop {1.25x+2.5y=363.75}} \right. [/tex]
From first equation we get
y+x=177 /-x
y=177-x
Now we can substitute to second eq
1.25x+2.5y=363.75
1.25x+2.5*(177-x)=363.75
1.25x+442.5-2.5x=363.75
-1.25x+442.5=363.75 /-442.5
-1,25x=-78.75 /:(-1.25) divide both sides by -1.25
x=63
Now we can back substitute
y=177-63
y=114
Finally we have
[tex] \left \{ {{y=114} \atop {x=63}} \right. [/tex]
So sold 117 hamburgers and 63 hotdogs