A man always complained he did not have enough money. One day a Goblin met him on a bridge of a river the man crossed every day and suggested, “I can help you. Every time you cross the bridge, your money will double, and every time you go back, you pay me $24. The man liked the idea and accepted the offer. After the third return, he had no money. How much money did the man have in the first place?