It can be confusing to deal with transactions that are mixed up and I'd be happy to show you how to undo them.
From your Banking tab:
Check-mark the duplicate transactions > Batch Actions > Exclude Selected > if you want you can delete the Excluded transactions from the Excluded section.
If you've got more questions comment back for further clarifications. I'll be here.