I'm having some trouble with the following problem:

Suppose you toss a fair coin. LetX be the amount of tosses you need to make until you get HTT

andY be the amount of tosses you need to make until you get HTH.

(a) What is expected value of X?

(b) What is the expected value of Y ?

(c) The game turns out to be fair even though the expected values of X and Y are different. How could this be?

Thanks!