W and T are the midpoints of the legs, RV and SU, of trapezoid RSUV. If UV = -2z + 30, TW = z + 31 and RS = z + 38, what is the value of z?