Let

the amount of money invested at 9% and

the amount of money invested at 5%. The amount invested at 5% (

) is 1700$ less than the amount invested at 9% (

) it means:

(equation 1)
The investments produced 223$ which means:

. (equation 2)
We use the first equation to eliminate

from equation 2:

He invested 2200$ at 9% and 500$ at 5%.