Cut vertically through the divider's depth, at the 82"-ceiling (tall) portion of the opening — the left 28 1/2" of the run. Bedroom is to the left, office to the right in this view.
Same cut, at the 73"-ceiling (low, soffit-dropped) portion of the opening — the remaining 77" of the run.