The length of a rectangle is (x+22. The width of the rectangle is (x^2+1). Which expression represents the perimeter of the rectangle?