Mr.Yi buys vegetables at a market. He purchases 6 pounds of potatoes,p, and 3 pounds of onions, n, for $18. Onions cost twice as much as potatoes.