You do not know which pill is which, but you are 100% sure that each of the two piles now contains two halves of pill B and half of pill A.
Now go back into the pill A box, take out a pill, cut it in half, and add one half to each stack. Now you have two stacks, each one containing two...