For the solution, we assume that a box can contain any number of balls.
You are probably familiar with the Stars and Bars way of counting the number of ways to put $2$ red balls in $5$ boxes.
If so, you also can find the number of ways to put $3$ blue balls in $5$ boxes.
Multiply.
Remark: $1.$ If Stars and Bars is not familiar, one can make it familiar (the Wikipedia article cited is pretty clear). Or else one can count separately, by considering cases, the answers to the $2$ ball problem and the $3$ ball problem.
$2.$ If we are to have $1$ ball per box (this was not specified), then the number of ways is the number of ways to choose where the red balls will go. This is $\binom{5}{2}$.