Emily wants to hang a painting in a gallery. The painting and frame must have an area of 31 square feet. The painting is 5 feet wide by 6 feet long. Which quadratic equation can be used to determine the thickness of the frame, x?

4x2 + 22x − 1 = 0
4x2 + 22x + 31 = 0
x2 + 11x − 1 = 0
x2 + 11x + 31 = 0