Here, AB || CD, and PQ and PR are the two transversals.
We know that co-interior angles are supplementary.
⇒∠APQ+∠CQP=180∘
⇒x+∠CQP=180∘
⇒x+140∘=180∘
⇒x=40∘
Similarly,
∠BPR+∠PRD=180∘ (Co-interior angles)
⇒z+130∘=180∘
⇒z=50∘
Now, angles x, y and z form a line, hence they sum up to 180∘.
⇒x+y+z=180∘ (Linear pair)
⇒40∘+y+50∘=180∘
⇒y+90∘=180∘
⇒y=90∘
∴y=90∘