h = number of hamburgers sold.
c = number of cheeseburgers sold.
we know that "c" is three times the number of "h", thus c = 3h
we also know, the total amount sold for both is 556, h + c = 556
h + c = 556
c = 3h
thus
h + (3h) = 556 <---- solve for "h" to see how many hamburgers were sold.
what about "c"? well, c = 3h