A jeweler can get an alloy that is $40\%$ gold for $200$ dollars per ounce, an alloy that is $60\%$ gold for $300$ dollar per ounce, and an alloy that is $90\%$ gold for $400$ dollars per ounce. The jeweler will purchase some of these gold alloy products, melt them down, and combine them to get an alloy that is $50\%$ gold. Find the minimum number of dollars the jeweler will need to spend for each ounce of the alloy she makes.

Let's think step by step and output the final answer within \boxed{}.
user