Given the way you have posted the problem there isno possible answer.

There are four possible ways to read this: the balls are different and the boxes are different; the balls are identical and the boxes are different; the balls are different and the boxes are identical; both the balls are identical & boxes are identical.

Which of the four possibilities is the one that fits you question?