Look on the back of the drive for the jumper (master,cable select,slave) image below will explain
Set the top drive to Master and connect to the end connector of the IDE cable.
Set the second drive to slave and connect to the midddle IDE connector.
The other end should be connected to the MB.