Question 1156017

let the number of hamburgers be {{{h}}} and the number of pizzas {{{p}}}

if a party was organised for {{{30}}} people at which they could either have a hamburger or a pizza, we have

{{{h+p=30}}}.........eq.1

if there were {{{5}}} times as many hamburgers as pizzas, we have

{{{h=5p}}}......eq.2

substitute {{{h}}} in eq.1

{{{5p+p=30}}}.........solve for {{{p}}}

{{{6p=30}}}

{{{p=30/6}}}

{{{p=5}}}

go to eq.2

{{{h=5p}}}......eq.2, substitute {{{p}}}

{{{h=5*5}}}

{{{h=25}}}

answer: there was {{{25}}} hamburgers and {{{5}}} pizzas