A box contains 12 different black balls, 7 different red balls and 6 different blue balls. In how many ways can the balls be selected?