Consider the experiment of tossing a fair coin three times. Define the random variable X to be the number of heads obtained in the three tosses.

Find the sample space C and the space of X.