Please Note: Once the accounts are merged, you will not be able to undo the merge. The first account will be deleted after they are merged and orders will also be merged into the one account.
To merge the accounts, go to Customers > View All Customers and search for the customer account that you want to merge into another account. Click on the username to edit the account. On the customer card, click on the Merge button:

Then search for the customer account you want to merge the first account into. Click in the field under Merge user account and enter the username or name of the account you want to merge with. Then select the account from the search results.

The company and name of this customer account will appear. If this is correct, click on the Confirm Merge button.
The customer details and sales orders will be merged, and accessible from the second account.