Which best explains whether a triangle with side lengths $5\text{ cm}, 13\text{ cm}$, and $12\text{ cm}$ is a right triangle?


AThe triangle is a right triangle because $5 + 13 > 12$.
BThe triangle is a right triangle because $5^2 + 12^2 = 13^2$.
CThe triangle is not a right triangle because $5 + 12 > 13$.
DThe triangle is not a right triangle because $5^2 + 13^2 > 12^2$.