For this case, the first thing we must do is define variables.
We have then:
x: number of years
y: total salary
For company 1 we have:

For company 2 we have:

By the time both salaries are equal we have:

From here, we clear the value of x.
We have then:


Answer:
Brenda's salary would be the same with both companies in 8 years.