Can someone help me with this problem?

A string is connected to two points A and D in a horizontal line and weights of 12 kg and

W kg are attached at points B and C. If AB, BC and CD make angles of 40◦, 20◦ and 50◦

respectively with the horizontal, calculate the tensions in the string and the weight W.