ah u have to know permutations and combinations & binomial expansion theorem thing. but that question is amazingly long and i cant do on this page. usually it wont ask this one in an exam. u have to factor out all coefficients and add them. check the example on the site below.