Let x represent the cost of a hot dog and y the cost of a hamburger.
Seven hot dogs and four hamburgers cost $19.50. This means that:
Four hot dogs and seven hamburgers cost $21.75. This means that:
Solving simultaneously, we can make x the subject of the formula in equation (2):
Substituting this value into the first equation, we have: