The perimeter of a regular pentagon is 45 units, and the length of each side is represented by the expression p - 2. What is the value of p?

p = ___ units