M is the centroid and the centroid divide the line in 1:2 ratio . So M divide BQ in 1:2 ratio and the total length of BQ is 18.
Therefore BM is one third of 18 . ANd one third of 18=6
So BM =6 and MQ=12 .