Hi Let x represent number of $7 boxes 7x +5(42-x) = 246 2x = 36 x = 18 $7 boxes and 24 $5 boxes (42-18 = 24)