One yard is equal to 36 inches, so we divide the number of inches by 36:
9 n inches / 36 inches/yard = 9n/36 yards
Next, we multiply the number of yards of ribbon by the cost per yard to find the total cost:
9n/36 yards * $3/yard = $3 * (9n / 36) = $0.75 * n
So, the expression for the total cost of the ribbon is $0.75 * n.