(d) 150
As no box has to be empty, each box should have at least 1 ball.
Let the boxes be labelled as B1, B2 and B3. Then the distribution of the balls can be shown as:
∴ Number of ways of placing the balls in different boxes so that no box remains empty
= 20 + 30 + 20 + 30 + 30 + 20 = 150.