Let x sweatshirts were produced at the factory.
The number of defective shirts is 15.
Equate 3% of x to 15, to obtain the value of x.
[tex]\begin{gathered} \frac{3}{100}\times x=15 \\ x=\frac{15\cdot100}{3} \\ =500 \end{gathered}[/tex]So 500 sweatshirts were produced at the factory.