Hamburger buns cost $2 per package and hot dog buns cost $1 per package. The total cost for buns is $16. The total number of packages was 12. How many packages of each type were bought?

1 Answer
Jun 27, 2018

#4# hamburger bun packages
#8# hot dog bun packages

Explanation:

Let the numbers of hamburger bun packages be denoted by #x# and the number of hot dog bun packages be denoted by #y#.

"Total cost is #$16#, where hamburger buns are #$2# and hot dog buns are #$1#"

#[1]=>2x+y=16#

"Total packages bought is #12#"

#[2]=>x+y=12#

We can solve #[2]# for #x#

#[3]=>x = 12- y #

We substitute #[3]# into #[1]#

#2(12-y)+y = 16#

#24-2y + y = 16#

#24 - y = 16#

#24 = 16+y#

#[4]=>8 = y#

We use #[4]# in #[3]#

#x = 12 - 8#

#[5]=>x = 4#

From #[4]# and #[5]# our solution is

#4# hamburger bun packages
#8# hot dog bun packages