How many ways are there to put 5 balls in 2 boxes if the balls are distinguishable and the boxes are distinguishable?
Each ball can go in 2 boxes, so the answer would be 2^5=32