Let x be the number of black ink cartridges sold, and y the number of color ink sold, therefore, with the given information we can set the following system of equations:
Solving the second equation for x, we get:
Substituting the above result in the first equation of the system, we get:
Solving for y, we get:
Substituting y=21 in the second equation of the system, we get:
Solving for x, we get:
Answer:
42 black printer ink cartridges were sold, and 21 of the other type.