One receipt, multiple expense accounts

I'm trying to figure out how to split up the purchases on one receipt between multiple expense accounts. For example, if I have a receipt for $50 but $25 is for office supplies and $25 is for computer hardware, how do I split that up when I'm posting it?
1