Find the missing length to each problem.... (please help me triangle inequality theorem *geometry*)

Answer:
ML=6,CD=7,AC=12,UW=22
Step-by-step explanation:
21.(2x+20):(x+19)=1:2 // x+19=4x+40 // 3x=-21 // x=-7// ML=2x+20=20-14=6
22.(x-3):(4+x)=1:2 // 4+x=2x-6 // x=10 // CD=x-3=10-3=7
23.(x-1):(x+5)=1:2 // x+5=2x-2 // x=7 // AC=x+5=7+5=12
24.(20+x):(x+31)=1:2 // x+31=40+2x // x=-9 // UW=x+31=-9+31=22