My physics teacher asked if we could calculate the rate at which Earth moves away from the Sun due to the mass loss of the Sun. It's very sensible for me to understand that Earth is spiraling away from Sun due to the nuclear fission reactions undergoing within the sun, which consumes $4.289 \times 10^{9}$ Kg every second to energy. I searched online and found that this rate is $1.5$ cm/y, but how did scientists know theoretically that Earth moves away at the rate of $1.5$ cm per year?
I tried to work out the calculations with the equation
$$m_E \frac{dv}{dt}=-G\frac{M_s(t)m_E}{r(t)^2}$$
But I found that I couldn’t work anymore using this equation. Can someone help me, please?