A goat enclosure is in the shape of a right triangle. One leg of the enclosure is built against the side of the barn. The other leg is 2 feet more than the leg against the barn. The hypotenuse is 4 feet more than the leg along the barn. Find the length, in feet, of the three sides of the goat enclosure. (Simplify your answers completely.)
The detailed explanation is contained in the image attached. The lengths are found using Pythagoras theorem and the two lengths reflects the two values of x yielded by the quadratic equation