The length of the three sides of a triangle is ABC. If a and B are equal to 10, AB is equal to 18, and C is equal to 8, judge the shape of the triangle,

The length of the three sides of a triangle is ABC. If a and B are equal to 10, AB is equal to 18, and C is equal to 8, judge the shape of the triangle,

a+b=10,
ab=18,
c=8
∴(a+b)²=100
∴ a²+2ab+b²=100
∴ a²+b²=100-36=64
∴ c²=64
∴ a²+b²=c²
The shape of a triangle is a right triangle