Juan earned money for creating a webpage for a local business. He used 1/2 of the money he earned for new shoes and 2/3 of the rest for music. He has $20 left. How much money did he earn for his work?