We are given a multi-set of numbers which consist of "$x$" 1's, "$y$" 2's and "$z$" 3's.
Given x,y and z , how to figure how out if this set can be divided into 2 equal parts(where sum of both the sets is equal to each other) ?
Example:- x=1; y=1; z=1; Set is:-{1,2,3} And 2-parts:-->{1,2},{3}
Note that the total sum obviously has to be even. When even, the total number of $x$s and $z$s are even. If the number of $x$s are even, then so are the number of $z$s.
We then consider two cases:
If the number of $x$s are odd (and likewise for $z$), we also have two cases:
$y$ is even: If $y$ is $0$, balancing the sets can only happen if there are at least $3$ $x$s, in which case we place $3$ $x$s on one side, $1$ $z$ on the other, then split evenly. Otherwise, place $1,2$ on one side, $3$ on the other, and reduce to the odd $y$, even $x,z$ case.
$y$ is odd: Place $1,2$ on one side, $3$ on the other, and reduce to the even $y$, even $x,z$ case.
In conclusion, if there are an even number of $x,y,z$s, or an odd number of each, the sets are partitionable. I'll leave the rest of the casework to you.