Emma has a debt of $50. She borrowed another $30 from her friend. If she repays $20, what is the total amount of her debt now? Let's think step by step and output the final answer within \boxed{}.
user