For this case we have the following variables:
f: The amount of fabric in yards
n: The number of shirts
The equation modeling the problem is given by:
For 12 yards of fabric we have:

From here, we clear the value of n.
We have then:
Answer:
16 shirts were sewn