A chemist needs to prepare 500 grams of a 20% saline solution. She has two solutions available: one that is 10% saline and another that is 30% saline. How many grams of each solution should she mix to obtain the desired 500 grams of a 20% saline solution? Let's think step by step and output the final answer within \boxed{}.
user