I need help on this question.

Let's go:
The centroid of a triangle is the point of intersection of its medians. The distance from de centroid to some vertex of triangle to which it belongs is equal to 2/3 of the length of its median:
BM = 18/3 = 6
I hope I helped you.