A frog is at the bottom of a 30 meter well. Each day he summons enough energy for one 3 meter leap up the well. Exhausted, he then hangs there for the rest of the day. At night, while he is asleep, he slips 2 meters backward. How many days does it take him to escape from the well?
Note: Assume after the first leap that his hind legs are exactly three meters up the well. His hind legs must clear the well for him to escape.
Make your answer "A" in the following formula
S 33 58.((135 x (32-A))
E 25 35.((30 x A) + 1)