A farmer creates a rectangular pen using part of the wall of a barn for one side of the pen and a total of 130 feet of fencing for the remaining 3 sides, as shown in the diagram. Write an equation which gives the area of the pen, A, as a function of x, the length of fence parallel to the barn wall.