A rectangular garden is designed to be 5 ft longer than it is wide. Let x represent the width of the garden. Find a function P that represents the perimeter in terms of x.