Let h = # of hamburgers sold, and c = # of cheeseburgers.
Then h+c = 376, and c=h-74. Solve this system of linear equations. Subst. h-74 for c in h+c = 376: h + h - 74 = 376. Then 2h = 450, and h = 225.
225 hamburgers were sold, and 225-74, or 151, cheeseburgers.