Larry wants to buy some carpeting for his living room. The length of the room is 3 times the width and total area of the of the room is 27 square meters.

What is the length of the living room?