I am working on a problem where I need to know how many ways there are to choose n out of 2n balls with three distinct colors, as a function of the numbers of balls of each color (The order does not matter). I already found a few answers on here that come close to what I need, namely this and this, but I do not understand enough of the solutions so that I can make it work for my problem. Also, the multivariate hypergeometric distribution seems related, but I have not managed to extract the information I need from any of the texts. Can you help?
Edit: Another way to phrase it would be: How do I distribute the 2n balls evenly between two distinct boxes.