Alright, lets get started.
First of all , I want to mention, there is diagram missing with the question, so I have attached a diagram, please refer.
As per the property of centroid, the centroid divides each median in the ratio 2:1.

Cross multiplying
or say





RC = 12 : Answer
Hope it will help :)