A pentagon $abcde$ is translated north by 40 units to pentagon $a_1 b_1 c_1 d_1 e_1.$ pentagon $a_1 b_1 c_1 d_1 e_1$ is then translated east by 50 units to pentagon $a_2 b_2 c_2 d_2 e_2.$ we know the perimeter of pentagon $abcde$ is 30 units. find $cc_2.$