The lengths of the given pair of corresponding legs are $6$ and $18$ , and the lengths of the hypotenuses are $10$ and $30$ . find the lengths of the other pair of corresponding legs.