Given that the segment AB at point C is 5:3, the segment AC at point D is 3:5, and the length of DC is 10cm, then the length of AB is?

Given that the segment AB at point C is 5:3, the segment AC at point D is 3:5, and the length of DC is 10cm, then the length of AB is?

It can be seen from the meaning of the title:
AC=(5/8)AB,AD=(3/8)AB
CD=AC-AD=(1/4)AB
AB=4CD=40cm