**This from Blitzstein, page 174. I don't understand the following:
- What is $E\binom{X}{2}$ [the lines highlighted in blue in the text]? How can one take combinations of random variables, how is it defined?
- How do we calculate $E\binom{X}{2} = \binom{n}{2} p^2$?
- What is the intuition of defining our random variable this way?**

This is my first time seeing this argument for finding $\mathbb{E}X^2$. Nonetheless I will try to answer your doubts.
$\mathbb{E} \binom{X}{2}$ is just the expectation of a function acting on $X$. Say $$ f(k) = \binom{k}{2} = \frac{k(k - 1)}{2}, $$ and $$ \mathbb{E} \binom{X}{2} = \mathbb{E} f(X) = \mathbb{E} \left[ \frac{X(X - 1)}{2} \right]. $$
First, $\binom{X}{2}$ can be understood as after the trial, $X = n$ which is deterministic, then $\binom{X}{2} = \binom{n}{2}$ is just the number of pair of trials that succeeded. This is what the italic words mean. This is the same as pairing up each trial, do the experiment and keep only the pairs that both succeeded, then count the number of such pairs. Following this line of thought, we can define an indicator for every pair of experiment, where each pair have a chance of $p^2$ to succeed due to independence. $\mathbb{E} \binom{X}{2}$ is just the sum of each indicator multiply by its chances of success, which $$ \mathbb{E} \binom{X}{2} = \binom{n}{2} p^2, $$ since each pair having the same success rate $p^2$, and there are a total of $\binom{n}{2}$ of such trials.
From the formula $$ \mathbb{E} \binom{X}{2} = \mathbb{E} \left[ \frac{X(X - 1)}{2} \right], $$ we can generate $\mathbb{E} X^2$. The motivation here is to use a counting argument instead of an algebraic one to derive the variance formula. Sometimes a counting argument is more direct but for this example I would prefer the computaions.