Help please we’re doing the substitution method for the questions

Answer:
$500 was invested at 4% and $1500 was invested at 5%
Step-by-step explanation:
let the two portions of the money invested is
x + y = $2,000
the total interest earned after one year is
.04x + .05y = $ 95
or
4x + 5y = 9500