KVM switch will allow one monitor, keyboard and mouse to be switched between the two computers.
This is what I've used, and it works great.
Welcome to Belkin - 2-Port KVM Switch with Built-In Cabling
There are many manufactures of these. Just make sure you get one that matches your keyboard and mouse input. (USB or PS2)