You can set up the simultaneous equations and then the matrix (A) is the coefficients, (x y z)T which will stand for the 9 10 and 12% amounts of money allocated you are solving for and the solution vector that will be the column vector b. You will solve the matrix Ax = b
1) sum of money in x, y, z: 1x + 1y + 1z = 470K
2) amount earned .09x + .1y + .12z = 46.8K
3) Rel'n of x and y 2.5x + (-1)y + 0z = 0
I leave you the matrix problem.