Finding effective monitor and desktop configurations for pair programming can be a challenge.
Pivotal Labs offers the following option in a post titled Pairing tete-a-tete .
The breakthrough is having a second display that mirrors the built-in display on the iMac. The second display and both keyboards/mice are all connected to the main iMac, so it’s one Mac system that can be used by two developers in collaboration.