force of gravitation between two different masses is given by

here in first case we will have

Newton
another case we have

Newton
another case we have

Newton
so the force will be maximum in last case when two 2 kg mass is placed at 1 m distance and minimum force is in second case when 1kg and 2kg mass is placed at 2 m distance