The two triangles at the left have the same angles and share a side, so they are congruent. Therefore, the vertical side is also 6x−2.
Using the same logic, the two triangles on the right have the same angles and share a side, so they are congruent. Therefore, the vertical side is also 9x−11.