Let x be the number of the jeans sold of the brand A. Then the number of those of the brand B is (32-x). Your "money" equation is 30x + 35*(32-x) = 1050. Simplify and solve for x. 30x + 1120 - 35x = 1050 -5x = 1050 - 1120 = -70 ====> x == 14. Answer. 14 jeans of the brand A and the rest 32-14 = 18 jeans of the brand B. Check. 14*30 + 18*35 = 1050. ! Correct !