uses Pythagorean theorem to find c on the left side finds A on the right side
Math takes too long >:(