The line legment has the length of 36 cm. It was divided into four unequal parts. If the distance between the midpoints of the first and the fourth parts is 30 cm, what is the distance between the midpoints of the second and the third parts?