Amanda got a prepaid debit card with $25 on it. For her first purchase with the card, she bought some bulk ribbon at a craft store. The price of the ribbon was 16 cents per yard. If after that purchase there was $21.48 left on the card, how many yards of ribbon did Amanda buy?

Let x be the number of yards of ribbon Amanda bought.

The total cost of the ribbon is 16 cents per yard times x yards, which is 0.16x dollars.

After the purchase, Amanda had $25 - 0.16x = $21.48 left on the card.

Subtracting $21.48 from $25, we find that Amanda spent $25 - $21.48 = $3.52 on the ribbon.

Setting this amount equal to the total cost of the ribbon, we have:

0.16x = 3.52

Dividing both sides by 0.16, we get:

x = 3.52 / 0.16 = 22

Therefore, Amanda bought 22 yards of ribbon.