In the Fibonacci sequence, any term (after the first two) is obtained by adding the two preceding terms. So, the third term is the first term plus the second term, and the fourth term is the second plus the third, for example.
So, term 500 + term 501 = term 502.
Thus, b + term 501 = a
term 501 = a - b.