Let's call the amount Deon invested on the 7% account as x, and the amount he invested on the 8% account as y. Since Deon had $20,000 to invest, the sum of those amounts must add up to 20,000.

The interest of a simple interest account is given by the following formula

Where P represents the principal(starting value), r represents the interest rate(in decimals) and t represents the amount of time.
Both accounts received interest for 1 year, therefore, t = 1. Now, the interest on each account will be different because the amount invested is different and the rate is different. For the first account, the interest is given by

The interest on the second account will be

And the total interest will be the sum of those values.

Combining this equation with the first equation for the distinct amounts, we have a linear system.

If we rewrite the first equation with x as a function of y

and substitute this on the second expression

We have an expression only for y. Solving for y, we have

Using this y value on any of the previous expressions, we get our x value.

$18,000 were investe in an account that paid 7% simple interest per year, and $2,000 in an account that paid 8% simple interest per year.