300 black balls and white balls are divided into 100 piles with 3 balls in each pile. 27 piles have only 1 white ball in each pile, 42 piles have 2 or 3 black balls in each pile and the number of piles which have 3 white balls is the same as those has 3 black balls. How many white balls in total are there?