bunk together

中高级 (B2) informal

To sleep in the same room or share beds with someone else.

"On the school trip, the boys had to bunk together four to a room."