Help this is hard and I will thank you

F= G(m1m2/d^2)
First divide all terms by G
G(m1m2/d^2) / G = F/G
Cancel common Factor:
m1m2 / d^2 = F/G
Multipl;y both sides by d^2:
m1m2 = F/G * d^2
Divide both sides by m2:
m1 = F /G * d^2 /m2
Simplify:
m1 = Fd^2/Gm2