Measure the length of each space, from the wall to where the wardrobe will end (for Open Ended sections).
For measurement 'B' - measure from wall to wall in three places (low, centre and high) - ignoring any skirting boards or coving. Give us the lowest of the measurements for each length.
If your measurements were 2244mm, 2241mm and 2247mm you'd give 2241mm