let l be the length of the room,
let w b the width of the room,
the perimeter of a rectangle is calculated by:
You know: l - w = 6 that means l = w+6
Plug in this value to calculate the length: l = 27.
The area of a rectangle is calculated by:
I'll leave the rest for you