Four out of 10 balls are red, some are green, and the rest are of different colors. If the balls can be arranged in 6300 ways, find the number of green balls.
Check this out:
https://www.algebra.com/algebra/homework/Permutations/Permutations.faq.question.1114134.html