The Pythagorean theorem related to which shape?

A ) Square

B ) Triangle ✅

C ) Circle

D ) Rectangle