I used the Pythagorean Theorom for this. Don’t add numbers greater than 200 or it goes off the screen. Checkout the code if you want to see how math is useful.