h represents the amount of hamburgers. 3h is equivalent to c, since we know that the number of cheeseburgers cold was three times the number of hamburgers sold. We add the two because it is a combined total.
Now we input the value for t, which is the total number of hamburgers and cheeseburgers sold, which is 516.