To solve this problem we must first generate the equation:
[tex]\begin{gathered} x\to sweatshirt \\ y\to jean \\ Ax+By=90 \\ y=18 \\ x=12 \end{gathered}[/tex]From the exercise we know that you are only going to buy a pair of jeans:
[tex]\begin{gathered} 12\cdot A+18\cdot B\le90 \\ B=1 \\ 12A+18\cdot(1)\le90 \\ 12A\le90-18 \\ 12A\le72 \\ A\le\frac{72}{12} \\ A\le6 \end{gathered}[/tex]Alee can buy 1 jean and a maximum of 6 sweatshirts with $90