The perimeter of a​ standard-sized rectangular rug is 40 ft. The length is 2 ft longer than the width. Find the dimensions.