On a number​ line, the coordinates of​ X, Y,​ Z, and W are −7​, −3​, 2​, and 5​, respectively. Find the lengths of the two segments