Let the three parts be A, B and C. Then,
A:B = 2:3 and B:C = 5:8 = 5×35 : 8×35 = 3 : 245
→ A:B:C = 2:3:245 = 10:15:24
→ B = 1549×98 = 30