You flip three coins and measure the number of heads obtained. Determine the space \(R\) for the corresponding random variable \(X\text{.}\) From the eight possible outcomes, determine all outcomes corresponding to \(X = 2\text{.}\) Identify the random variable as discrete or continuous.