Question 1024750
x = amount of investment that made a 12% profit.
y = amount of investment that made a 19% loss.


you have 2 equations.


x + y = 25000


.12x - .19y = 1030


solve for y in the first equation to get y = 25000 - x.


replace y with that in the second equation to get .12x - .19 * (25000 - x) = 1030.


solve for x in the second equation to get x = 18645.16129.


since y = 25000 - x, you get y = 6354.83871.


john invested 18645.16129 that earned 12% profit.


his profit was .12 * 18645.16129 = 2237.419355.


john invested 6354.83871 that earned him 19% loss.


his loss was .19 * 6354.83871 = 1207.419355.


his net profit was 2237.419355 - 1207.419355 = 1030.