For a right angled triangle the sum of the squares of two sides will be the square of the diagonal.
Lets check,
(2.5)²+6²=42.25
6.5²=42.25
Therefore it is right angled triangle
2²+2²≠5²
it's not a right angled triangle
1.5²+2²=2.5²
therefore it is a right angled triangle