I have a set of integers $\{e_1, e_2, ..., e_n\}$ in which subsets of elements are taken, and operations are applied to each element so that the sum of elements in a set equals the mean of all subsets, $x$.
For example, the sets $A = \{e_1, e_2, e_3, e_4\}$ and $B = \{e_5, e_6, e_7, e_8\}$. The sum of $A + B$ divided by the number of sets gives $x$, and the sum of any individual set divided by $x$ gives the amount by which I should multiply each element of that set for it to add to $x$. I felt this was quite a trivial problem until I realized subsets may contain elements from other subsets, e.g. The example above may have the third set, $C = \{e_1, e_9, e_{10}, e_8\}$, noting that $e_1 ∈ A$ and $e_8 ∈ B$. This has left me stumped as I can no longer proceed through sets linearly as subsequent operations on the same variable will invalidate the sum of prior sets the variable is a member of.
Can anyone share ideas, or theorems or solutions that can help me find an operation I can apply to elements so that each set is equal to $x$?
I'm sorry if my set notation is lacking as it really has been a while since my studies. Furthermore, I know my question may be confusing, but it is assumed in this use case that each set should (but will not) have the same sum, and by operating on elements to achieve the average of all elements, the validity of each element increases. I just don't know what to do about elements appearing in >1 set.