I am trying to use the law of total variance which is
$$\operatorname{Var}(X) = \text{Var}(E(X\mid Y)) + E(\operatorname{Var}(X\mid Y))$$
But I honestly have no idea how to compute either one of these terms. I have the following example:
Let $y$ be the value you get when rolling a 4-sided die. Then you roll $y$ 6-sided dice. Let $x$ be the sum of all the values. What is the variance of $x$?
I know that $E(y) = 5/2$ and $\operatorname{Var}(y) = 5/4$ by use of $\operatorname{Var}(y) = E(y^2) - E(y)^2$, but I don't know how to compute the conditional terms properly above.
I already know the answer is $1085/48$ but want to know how to get there.
I'm going to follow the notation you used initially and use capital $X$ and capital $Y$ rather than $x$ and $y$ for the random variables.
$Y=1,\,2,\,3,\,\text{ or } 4$ each with probability $\dfrac 1 4$.
$\operatorname{E}(Y) = 2.5$ and $\operatorname{var}(Y) = 1.25$.
$X$ is the sum of the outcomes when $Y$ dice are thrown.
The outcome when one die is thrown has expectation $3.5$ and variance $\dfrac{35}{12} = 2.916666\ldots\,$.
$$ \operatorname{E}(X\mid Y) = \underbrace{3.5 + \cdots + 3.5}_{Y \text{ terms}} = 3.5Y. $$ $$ \operatorname{var}(X\mid Y) = \underbrace{\frac{35}{12} + \cdots + \frac{35}{12}}_{Y \text{ terms}} = \frac{35}{12} Y. $$ So $$ \operatorname{var}(\operatorname{E}(X\mid Y)) = \operatorname{var}(3.5 Y) = 3.5^2 \operatorname{var}(Y) = 3.5^2 \times 1.25. $$ $$ \operatorname{E}(\operatorname{var}(X\mid Y)) = \operatorname{E}\left( \frac{35}{12} Y \right) = \frac{35}{12} \operatorname{E}(Y) = \frac{35}{12}\times 2.5. $$