First hint, you're going to have to (For greatest ease) delete the whitespace before you attempt to decode its formula. Then you need to decide how your x2 is going to look like. EG, x^2 x2 xpow2....