Calculate the length of the of square that inserted inside a right angle triangle #geometry