Answer:
40 black ink cartridges and 19 colored ink cartridges
Step-by-step explanation:
Let [tex]b[/tex] represent the number of black printer ink cartridges sold. Let [tex]c[/tex] represent the number of color printer ink cartridges sold.
Set up a system of equations:
[tex]\displaystyle\\\begin{cases}b+c=59\\17.99b+20.99c=1,118.41\end{cases}[/tex]
[tex]b+c=59\implies b=59-c[/tex]
Substitute:
[tex]\displaystyle\\17.99(59-c)+20.99c=1,118.41\\\implies c=\boxed{19}[/tex]
[tex]\implies b+19=59\implies b=\boxed{40}[/tex]
⇒ 40 black ink cartridges, 19 colored ink cartridges (ans)