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