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.)