Let Q divide AB in the ratio say k:1 internally, then
[By second formula]
-6k+ = -2k-2 and -9k+ = -3k-3
-6k+2k = -2- and -9k+3k = -3-
-4k = - and -6k = -
The ratio is k:1 = :1