What I'm going to do here is I'm going to think about well what is one minus P times this expected value? So let's do that. So if I say one minus P times the expected value of X, what is that going to be equal to? Well I would multiply every one of these terms by one minus P. So one P times one minus P would be one P times one minus P. You would get that right over there. What about two P times one minus P? What would that be equal to? Well that would be two P times one minus P and now we're going to multiply it by one minus P again so you're going to get one minus P squared.