John has a train building set containing $5$ locomotives and $17$ wagons.
a) How many possibilities of a train can John build if a single train needs 1 locomotive and 10 wagons to be built?
b) By adding a locomotive at the end, how many possibilites are there now?
a) I assume I use the combinations formula here $\frac{n!}{r!(n-r)!}$
I then calculated the possibilites of the locomotives $\frac{5!}{1!(5-1)!}$ which gives me the result of $5$. Then I calculate the possibilites of the wagons $\frac{17!}{10!(17-10)!}$ with the result being $19448$.
After that I simply multiply the both possibilites to get the final solution $97240*4=399960$
b) I would simply take the final solution from a) and multiply it by $4$ which equals to $388960$.
My question is: Are these valid solutions?
No. $\frac{17!}{7! ×10!}$ will give you an integer. Also check your calculations. Use permutations formula and recalculate it.