Ok ok, I'll tell you. It's a geometric distribution.

In particular, the expected value of a geometric value is equal to the number of heads before the first tail. Go see baby Degroot if you don't remember geometric distributions. Set this expected value = 1/lambda, and solve for lambda in terms of the probabilities. Now it's just like the problems in the chapter.