Arun bought a ball with a 20$ note and received 7$ change. Then, he bought a bat with three 10$ notes and received 8$ change. Altogether he had 25$ left. How much money did Arun have before he bought a ball and a bat?