How many triples $x,y,z$ satisfy $x+y+z=12$, where $x,y,z\ge 0$ are integers?
Note that these are not ordered: $ (12,0,0)$ and $(0,12,0)$ are treated as same.
Progress
I have tried the formula ${13\choose 2}$ to select values of $x$ and $y$ from $0$ to $12$ as $z$ would keep changing according to $x$ and $y$. (That is, $z=12-x-y$.) The problem is that that certain combinations of $x$ and $y$ would give value of $x+y$ greater than $12$. I can't seem to get around this.
This is a standard stars an bars argument. Present $12$ pictorically as follows.
$\underbrace{************}_{12}$. You want to split this number into three parts so that order matters.
hence you want to add two barriers such as this example, which represents $3+4+5$
$\underbrace{***}_3|\underbrace{****}_4|\underbrace{*****}_5$.
Or this one for $0+0+12$
$||************$.
How many of these arrangements are possible? There are $14$ objects, (12 stars and $2$ bars) hence $14$ positions and we must select the positions the bars will take. There are $\binom{14}{2}$ ways to do this, hence the answer is $\binom{14}{2}=\frac{14!}{(14-2)!2!}=\frac{14\cdot13}{1\cdot2}=7\cdot13=91$ solutions.