If the least common multiple of A and B is 120, and the ratio of A to B is 3:4, then what is their greatest common divisor?
A = 30
B = 40
LCM[30, 40] = 120
GCD[30, 40] = 10