For this task you need the following basic knowledge: Line equation and triangle
Two sides of the triangle are coordinate axes. These have a right angle between them, so the triangle is certainly right-angled.The right angle cannot be a base angle in an isosceles triangle, so the legs of equal length are the catheti (axes).
There are two ways to choose a point so that the legs are of equal length:
and . The triangle is then in the 1st quadrant or in the 4th quadrant. The triangle cannot be in other quadrants since P is on the boundary between the first and fourth.
This gives you a slope triangle for with slope -1 and one for with slope 1.
Such a triangle thus occurs for the gradients and .