Carter was given a box of assorted chocolates for his birthday. Each night, Carter treated himself to some chocolates. Carter ate 5 chocolates each night and there were originally 30 chocolates in the box. Write an equation for C, commaC, in terms of t, commat, representing the number of chocolates remaining in the box tt days after Carter's birthday.

Since Carter eats 5 chocolates each night, after t days, he would have eaten 5t chocolates. The initial number of chocolates in the box was 30, so the equation for C, representing the number of chocolates remaining in the box after t days, can be written as:

C = 30 - 5t