There are ways of picking 2 of the 10 available positions for a 0. 8 positions remain.
There are ways of picking 3 of the 8 available positions for a 1. 5 positions remain, but we're filling all of them with 2s, and there's way of doing that.
So we have
The last expression has a more compact form in terms of the so-called multinomial coefficient,
You have to distribute the 7 to x and 2 so : 7x+14=2x-1 Add one to both sides (inverse operations) 7x+14=2x-1 +1 +1 7x+15=2x Cross Cancel by subtracting 7x from both sides 7x+15=2x -7x -7x 15=-5x Divide by -5 15/-5= -5/-5 X= -3