In the room below, John and Mary were together once more, while Alfred Inglethorp and Miss Howard were in custody. 
Two people were in custody, while two people were in a room below.
John and Mary were in different rooms, and no one was in custody.