use the following two equations and solve for the unknown:
$ E[X^2] = E[X] = p \! $
$ Var(X) = p(1-p)\! $