Suppose that the genders of the three children of a certain family are soon to be revealed. Outcomes are thus triples of "girls"
(g) and "boys" (b), which we write gbg, bbb, etc. For each outcome, let R be the random variable counting the number of girls in each outcome. For example, if the outcome is gbb, then R9gbb)=1. Suppose that the random variable X is defined in terms of R as follows: X=2R^2-4R-2. The values of X are thus: