Find the distance between and when: (i) PQ is parallel to the y-axis, (ii) PQ is parallel to the x-axis.