Find the length of square that inserted inside a triangle