Complex sentence: In their school days, they had one bed and one table in common; as students, they had two beds and two tables in the same room.
Split into simpler sentences: In their school days, they had one bed and one table in common. As students, they had two beds and two tables in the same room.