Sounds like a job for some simultaneous equations.

Given A is the initial amount invested, r is the rate then

Maybe use

(1+r)A= 1500+A ...(1)

and

(A+500)(1+(r-2))=1300+(A+500) ...(2)

Leaves you with some algebra.

I may be over complicating this one, it is early morning here!