$ \mathbb{E}(X) = 2 \cdot \mathbb{E}(\text{number of heads}) - 3 \cdot \mathbb{E}(\text{number of tails}) $
$ \mathbb{E}(X) = 2 \cdot \sum_{i=0}^{n} Pr(A) - 3 \cdot \sum_{i=0}^{n} Pr(B) $
$ \mathbb{E}(X) = 2 \cdot n \cdot \frac{1}{2} - 3 \cdot n \cdot \frac{1}{2} $
$ \mathbb{E}(X) = n - \frac{3}{2}n $
$ \mathbb{E}(X) = \frac{2n}{2} - \frac{3n}{2} $
$ \mathbb{E}(X) = \frac{-n}{2} $