If you know the stars and bars type method(explained as:) for identical gifts:
$$\sum^n x_i=m;x_i\geq1\implies \binom{m-1}{n-1}$$
In your case it's $\binom{9}{2}=36$
Note: See method explanation
If gifts are not identical its total ways minus the ways in which any child goes empty handed: $$c^{t}-\sum_{\phi\ne J\subseteq\{i\mid i\leq c,i\in\mathbb N\}}(-1)^{|J|-1}n\left(\bigcap_{j\in J}A_j\right)\quad c=3,t=10$$
where $n(A_j)$ is the number of ways in which the $j^{th}$ child go empty handed and $c,t$ are the no. of children and toys respectively.
Also no. of elements in union of $c_0$ sets is:
$$\binom c{c_0}(c-c_0)^t$$
So:
$$3^{10}-\left[\binom312^{10}-\binom321^{10}+\binom330^{10}\right]=55980$$
Note: See method explanation