in list finding value
<p>Finding variable value in a list. Input (uppercase letter is variable name):</p>

<pre><code>[ 1,   [2, X],   Y,        [4, Y, X]]
[ 1,   U,        [3, U],   [4, Z, 10]]
</code></pre>

<p>example output:</p>

<pre><code>X = 10
U = [2, 10]
Y = [3, [2, 10]]
z = [3, [2, 10]]
</code></pre>

<p>How can we find variable value only comparing this two list?
@user<br>
I  want to evaluate each variable: Given X = 10, U = [2, X] = [2, 10], Y = [3,U] = [3,[2,X]] = [3,[2,10], Z = Y. So each single variable in one list can be resolved with it corresponding "equation in the other list. But what if I have two of the same variable in one list (such as Y)?</p>
