The expected value formula is
[tex]E(X)=\Sigma X_ip_i[/tex]So, we have to find the probability of each event.
In this case, heads and tales have the same probability of 1/2.
Tossing no head has a probability of 1/2.
Tossing one head has a probability of 1/2.
Tossing two heads have a probability of 1/4.
Now, we multiply each event by its value, then we sum
[tex]E(X)=1\cdot\frac{1}{2}+2\cdot\frac{1}{2}+3\cdot\frac{1}{4}=\frac{1}{2}+1+\frac{3}{4}=2.25[/tex]