triangle b is right
using the converse theorem of pythagoras.
if the square of the longest side in a triangle equals the sum of the squares of the other 2 sides then the triangle is right.
longest side squared = 36² = 1296
26² + 18² = 676 + 324 = 1000 ≠ 1296
hence triangle a is not right
longest side squared = 25² = 625
20² + 15² = 400 + 225 = 625 ← correct
hence triangle b is right
m = (y2 - y1) / (x2 - x1) | * (x2 - x1)
m * (x2 - x1) = y2 - y1 | + y1
m * (x2 - x1) + y1 = y2
answer d is correct.