What is a reflection rule that maps each triangle and its image?

From the diagram, the line of reflection is
[tex]y=x[/tex]Hence, the rule of reflection is
[tex]R(x,y)=(y,x)[/tex]Therefore, the reflection rule R(x,y) = (y,x), and the equation of the line t is y = x
Check
[tex]\begin{gathered} P(2,3)\to P^{\prime}(3,2) \\ Q(-2,4)\to Q^{\prime}(4,-2) \\ R(-2,0)\to R^{\prime}(0,-2) \end{gathered}[/tex]