The length of a rectangle is three less than twice the width. If the perimeter of the rectangle is 84​ meters, what are the length and​ width?