Sam and Alex are comparing their weekly earnings. Sam earns $15 per hour and works 30 hours a week. Alex works part-time and earns $10 per hour. If Alex wants to match Sam's weekly earnings, how many hours does Alex need to work? Let's think step by step and output the final answer within \boxed{}.
user