Scale factor = size of image /size of preimage
= mA'B' / mAB
= 18/6
= 3
Your choice of scale-factor = 3 is correct! Well done!