The formula for the perimeter P of a rectangle with length l and width w is P=2l+2w. Suppose the length of the rectangle is 3 units longer than the width. Rewrite P in terms of w only.