Connor was given a box of assorted chocolates for his birthday. Each night, Connor treated himself to some chocolates. There were originally 18 chocolates in the box and after 3 nights, there were 9 chocolates remaining 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 Connor's birthday.

The equation for C in terms of t can be written as:

C = 18 - t

where C represents the number of chocolates remaining in the box and t represents the number of days after Connor's birthday.