Find the number of solutions $x_1+x_2+\dots+x_n=r$ where each variable is either $0$ or $1$.
Is this just ${n \choose r}$? Since there are basically $n$ spots to fill with a $0$ or a $1$. We can choose $r$ $1$'s to fill $r$ spots and then the remaining spots we can place the $0$'s in one way. Thus $n \choose r$. I made several examples and this seems to make sense. Any solutions or hints are greatly appreciated.
Yes, that's correct. You need exactly the number of $r$-subsets possible out of a set of $n$ distinct items, which is the definition of the binomial coefficient.