Alex works at a factory where he earns $20 per hour. For any hours worked beyond 40 hours in a week, he earns overtime pay at a rate of 1.5 times his regular hourly wage. If Alex worked 50 hours in one week, how much total pay did he earn for that week? Let's think step by step and output the final answer within \boxed{}.
user