A quadrilateral with 90 degree angles is shown. The lengths of the left and right sides are 10 and 2 y + 4. The lengths of the top and bottom sides are 18 and 10 + 2 x.

What is the value of x?