Splitting Contributions between Accounts
You could create two contributions, as @ErikH mentioned in a comment.
You could create a price set with two fields configured for the two accounts. Then create a contribution using the price set and have two line items, one for each account.


FYI, we expect with a month or so to have a new version of the Line Item Edit extension which will allow you to easily add an additional line item without first defining a priceset. That will allow you to split the contribution between accounts more easily. See https://github.com/JMAConsulting/biz.jmaconsulting.lineitemedit/wiki