Set x be the amount Roscoe invested in the first account; similarly, y is the amount invested in the second account.
Therefore, the final balance in both accounts is

Furthermore, we have that,

Thus,

Substituting the first equation into the second one,

Finding the corresponding value of x,

Hence, Roscoe invested $4700 at 11% and $3000 at 9%