Before proceeding, we must compute section properties for shafts (1) and (2).
For shaft (1):
J1=π32(D14-d14) =π32(50 mm)4-(24 mm)4 =308,102 mm4
and
c1=50 mm2=25 mm
For shaft (2):
J2=π32(D14-d14) =π32(42 mm)4-(30 mm)4 =225,968 mm4
c2=42 mm2=21 mm