How many ways are there to put 4 distinguishable balls into 3 distinguishable boxes?
Assuming no restrictions ( some boxes may be empty ) we have
k= no. of balls
n = no. of boxes
The total ways = nk = 34 = 81 ways