Cabins and carpet (**)

Some riddles. If you can answer one then you know what you need to do to answer the others.