I have incurred a question and I am having a hard time with it. Please refer the image below 
Here it is given that $AP:PC = 3:4$, $QM:MP = 3:2$ and $QB=12cm$. We have to find the length of $AB$. I have tried as many theorems I knew but was not able to conclude to the answer. Please help me to find the answer. Any help is appreciated. $$Thank you$$

Menelaus' theorem for triangle $APQ$ and transversal line through $B,M,C$
$$\frac{BA}{BQ} \cdot \frac{MQ}{MP} \cdot \frac{CP}{CA}=1 \Rightarrow \frac{BA}{12} \cdot \frac{3}{2} \cdot \frac{CP}{CA}=1 \Rightarrow AB=8\cdot\frac{AC}{PC}=8\cdot\left(\frac{AP+PC}{PC}\right)$$
$$=8\cdot\left(\frac{AP}{PC}+1\right)=8\cdot\left(\frac{3}{4}+1\right)=14$$