Set up a system of equations describing the following word problem. Be sure to specify what each variable represents.
A rectangle has perimeter 18. If each side of the rectangle is doubled, the perimeter of the new rectangle is 36. What were the dimensions of the original rectangle?