The salary sequence forms an arithmetic progression.
37000, 37000+1500, 37000+3000,..........
So the first term of the AP is a=37000 and the common difference is d=1500.
The number of years will be the number of terms of the sequence (n).
The total salary is 1,025,000.
So we have to find the number of terms of the sequence that will add upto give 1,025,000.
Sum to n terms of an AP is given by
a=37000 and d=1500.
You will get a quadratic equation in n which has to be solved to find the required number of years.