Solution
For this case we can define
x= number of years
And we can create the following equation to solve the problem
7000 + 280 x = 4000 + 580x
And then we can solve for x like this:
7000 -4000 = 580x - 280 x
3000 = 300x
x= 3000/300 =10
So then the answer would be 10 years