Alex works as a freelance graphic designer. He charges $50 per hour for designing logos and $30 per hour for editing photos. In one week, he worked 12 hours designing logos and 8 hours editing photos. How much did Alex earn in total that week? Let's think step by step and output the final answer within \boxed{}.
user