In the second part, if c is on the left, the circumference is: ly-2l+5+x=30.
Combining the two equations, it is concluded that ly-2l+2+y=30, possibility 1: Y-2+2+Y = 30, Y = 15, X = 12, possibility 2:-Y+2+Y = 30.
If c is on the right, then the circumference is 2+y+x+5=30.
Combining these two equations, we get 2+y+2+y = 30, y = 13 and x = 10.
In the second scene, if D is on the left and C is on the left of the first part, then 2+X+5 = Y.
Synthesize the three possible equations in the second part:
1.2+x+5=y and y-2+2+y=30, y= 15, x=8.
2.2+x+5=y and -y+2+2+y=30 are invalid.
3.2+x+5=y and 2+y+x+5 = 30, 2+2+x+5+x+5 = 30, x = 8, y = 15.
In the third scene, if D is on the left and C is on the right in the first part, then 2+x+y=5. Obviously, whatever the second part is, it can't be true.
In the fourth scene, if the first part D is on the right and C is on the left, then y-2=5-x, and there is no answer.
So there are three possible answers. But although a straight line can be regarded as a triangle (one angle is 180, and the other two angles are 0), it is not complete, so C can't be on the right in the second part, because if it is on the right, then the figure of the first part, that is, the straight line, will be obtained. Similarly, the d in the first part cannot be on the left. So to be precise, the answer is x= 12 and y= 15.
In fact, accurately speaking, the first part still lacks the possibility of D or C between AB. But there are too many, so I won't write.