Let's use Newton's Law of Universal Gravitation, which is expressed asF=G(m1m2)/r2We can find the force of attraction between them. Then, to find the acceleration fromF=m1a1 and F=m2a2I'll take it you know the equations of motion for constant acceleration. y=1/2at^2
Obviously, as they accelerate towards each other, the radius between
them decreases, meaning the force of gravitation between them increases,
meaning they accelerate faster.