Problem 2. The length of segment $A B$ is $2 \mathrm{~cm}$ longer than the length of segment $C D$. If the length of segment $C D$ is tripled, and the length of segment $A B$ is increased by $10 \mathrm{~cm}$, the resulting segments will be equal. What are the lengths of segments $A B$ and $C D$?