We can use the triangle mid-segment theorem to understand this problem better.
The midsegment of a triangle is parallel to the third side of the triangle and it’s always equal to 1/2 of the length of the third side.
From the image, we can say:

Given the information for QS and TU, we can find the value of z:

Thus, the value of z is
z = 2