Dear Student ,
According to Newton's Law of Gravitation ,the force between two objects of mass M and m respectively and if R be the distance between their centres then
Now when the masses are doubled then , M' =2M and m'= 2m , then the force due to gravitation is ,
Again when the distance between them is doubled then , R' = 2R , then the force due to gravitation is ,
Regards