Daniel B. answered 12/15/21
A retired computer professional to teach math, physics
Let
r be the distance from A to C as well as distance from B to C,
m be the mass of C,
G be the gravitational constant.
Then the distance from A to B is 2r.
The mass of both A and B is 3m.
The gravitational force between A and B is
G×3m×3m/(2r)² = 9Gm²/4r²
The gravitational force between B and C is
G×m×3m/r² = 3Gm²/r²
You can calculate the ratio between the two forces.