Space and functions are constant factors. The position of the openings is varied.
Room A
Room B
Room A - Two alternative solutions for the corner section