I am trying to solve a system of simultaneous linear equations whose unknowns have only two possible values. How do I approach this, or what area of mathematics do I employ inorder to arrive at the exact solution. e.g. \begin{align} a+b+c+d+f+g+h+i &= 12, \tag{1} \\ b+c+d &= 6, \tag{2} \\ f+g &= 2, \tag{3} \end{align} where possible values for $a,b,c,d,f,g,h,i$ can only be $2$ or $0$.
NB The example above is just an illustration of what I am trying to solve which is a nested Venn diagram problem with about $10$ equations of $14$ unknowns ($a,b,c,\dotsc,n$) whose values can only be $4$ or $6$.
You may consider it a problem of discrete structure or number theory.
You have $$a+b+c+d+f+g+h+i = 12$$
From
$$b+c+d = 6$$ and the assumption that your variables are only either $0$ or $2$ we get $$b=c=d=2$$
Thus $$a+f+g+h+i = 6$$
From
$$f+g = 2$$ we get $$a+h+i =4$$
That gives us different cases for $f$ and $g$ and $a,h,i$