The perimeter of a rectangle is 40 inches and each diagonal of the rectangle is 18 inches long. What is the area of this rectangle?