A museum curator needs to frame a rectangular painting. The painting is 30 inches by 17 inches. If the frame has a width of x on all sides, what is the quadratic function that models the area of the painting and frame?