2x + 3x = 21000 5x = 21000 x = 21000/5 = 4200. ANSWER. Sarah invested 2*4200 = 8400 dollars. Javier invested 3*4200 = 12600 dollars.