If  you need to split the donation between two contact records,  enter separate gifts for each contact.  You can link them together via soft credits or adding a gift note.