Let's make the question somewhat simpler to begin with. If the situation was like this: 1 room for 3 people, the rest will sleep outside. Then how many different arrangements are there?

If you can answer that, then think about the additional number of arrangements we get by dividing the remaining 4 amongst two other rooms and a car (adding 1 room or car at a time).