In the given figure, line PQ and line MN intersect at O. Determine the value of y when x=60°. Further, determine the value of x when y=40°.