Mr. Barclay sold goods for $21 and lost a percent equal to the number of dollars he paid for the goods. How much did the goods cost him?