Dear student
The universal law of gravitation is,
F = G m1 m2 /r 2
Where, G is a constant called the universal gravitational constant and is equal to 6.67 × 10-11 Nm2 /kg2
Now,
1. When their masses are halved, say m1 becomes m1/2 and m2 became m2/2.
The new force is, F = G(m1/2)(m2/2)/r2 = F/4
2. Again, if the r is increased by 4 times, say it becomes 4r, the new force is, F = G(m1)(m2)/(4r)2 = F/16
3. if distance and masses both increases by four-times then F = G ( 4m1) (4m2) / (4r)2 = F
Regards