Given the point P with the coordinate indicated below
![\begin{gathered} P(a,b) \\ x\Rightarrow a \\ y\Rightarrow b \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/zc1cjvh1ayvslcdf412mmd36hnpjwqw7sj.png)
When a point is reflected across the line y=x, the transformation rule is shown below:
![(x,y)\rightarrow(y,x)](https://img.qammunity.org/2023/formulas/mathematics/college/xrxzofqrju7bzvtyrl9rd71hrft58h54y4.png)
From the above transformation rule, we see that the coordinate will be swapped for reflection over the line y = x.
Thus, the coordinate of Q is shown below.
![P(a,b)\rightarrow Q(b,a)](https://img.qammunity.org/2023/formulas/mathematics/college/5d7ebcxgqk0b38b4nx57rk11t0ygdtnqr5.png)
Hence, the coordinates of point Q is ( b , a )
The second option is the correct option.