Mr. Wood went to the stores to buy school supplies for his children. He spent half of his money plus $5 at Store A. He then spent half of his remaining money plus $10 at Store B. At the end he had $25 left. How much money did Mr. Wood start with?