Assuming the balls to be identical except for difference in colours, the number of ways in which one or more balls can be selected from 10 white, 9 green and 7 black balls is
(a) 630
(b) 879
(c) 880
(d) 629