The equation is C = 18 - 2t
Zendaya starts off with 18 chocolates. Then she subtracts off 2 chocolates per night. That's why the minus 2t portion is there.
The table of values will look like this

Domain = {0,1,2,3,4,5,6,7,8,9} = set of possible inputs for t
Range = {18,16,14,12,10,8,6,4,2,0} = set of possible outputs for C
For example, the scratch work when t = 4 is:
C = 18-2t
C = 18-2*4
C = 18-8
C = 10
On day 4, there are 10 chocolates left over. Note the pairing "4,10" shown in the table above.