A square piece of paper is folded in half vertically. The resulting figure has a perimeter of 21 in. What is the number of units in the greatest possible perimeter?