Three friends X, Y and Z run a running race, Y finished 12 meters ahead of Z and 18 m ahead of X, while Z finished 8m ahead of X. If each friends runs the entire distance at their respective constant speeds, what is the length of the race? a) 16m b) 48m c) 24m d) 12m