An illustration of a right triangle with sides, 40, 75, and x. Additional height of x is added to 75.…