A man entered a cockpit paying P10.00 entrance fee. He bet all his money and won. His money was doubled. He goes out and paid another P10.00 for exit fee. Again, he entered a cockpit and paid P10.00 entrance fee. He bet all his money, won, and doubled his money. He left the cockpit and paid P10.00 exit fee. He entered the third cockpit, do the same and the same happen. He paid entrance fee, bet all, won, money was doubled, left and pay exit fee.
After he left the last cockpit, the man has no more money.
Question: How much was his money before he entered the first cockpit?