So u have to use The gravitational law: F = (GmM)/(r^2) because for the first one they are the same distance apart but both masses are twice as big the bottom force is 4 times larger
But for the second one all masses are the same but the bottom is twice as distant so the top is 4 times larger