We will have the following:
First, we are given the following expressions for the rectangle's length and width respectively:

&

Now, we calculate the length and width using the perimeter:

So:

Then:

So, the measurements of the length and the width are respectively 12 units and 6 units.