You would use the Pythagorean theorem A squared plus B squared equals C squared so you would for example do 5 squared plus 6 squared equals 8 squared so then in your calculator you would put five squared +6 squared see what that equals then do another thing and put eight squared and if it equal each other than it can make a right angle