Two blocks on a frictionless table, A and B, are connected by a massless string. When block A is pulled with a certain force, dragging block B, the tension in the string is 24N . When block B is pulled by the same force, dragging block A, the tension is 18N. What is the ratio (ma/mb) of the blocks' masses?