To solve the exercise, let us see what are the coordinates of the points that form the figure before and after making the reflection:
[tex]\begin{gathered} A(-2,8)\rightarrow A^{\prime}(8,-2) \\ B(-6,0)\rightarrow B^{\prime}(0,-6) \\ C(-10,6)\rightarrow C^{^{\prime}}(6,-10) \end{gathered}[/tex]As you can see the reflection of all the points has the form:
[tex](x,y)\rightarrow(y,x)[/tex]which occurs when the line of reflection is the line:
[tex]y=x[/tex]Therefore, the correct answer is option B.