A real number $U$ is chosen uniformly from the interval $(0,10)$. Next, an integer $X$ is chosen according to the Poisson distribution with parameter $U$. What is the expected value of $UX \, $?
Here is my work.
By the law of total expectation, $E[UX]=E[E[UX|X]]$
$E[UX|X]=XE[U]$ by conditioning on a known variable.
$E[U]=5$, since $U \sim UNIF(0,10)$.
Hence, $E[Y]=E[5X]=5E[X].$
$E[X]=E[E[X|U]]; \hspace{1cm} X|U \sim Pos(U); \hspace{1cm} E[X|U]=U; \hspace{1cm} E[X]=E[U]=5.$
Hence, $E[Y]=5 \times 5=25.$
The answer key says $E[UX]=\frac{100}{3}$. I'm not sure where I went wrong.
Why are you trying to condition over $X$?
Since you have the conditional distribution for $X$ when given $U$, you should use that conditioning in the expectation too.
$$\begin{align}\mathsf E(UX)&=\mathsf E(\mathsf E(UX\mid U))\\[1ex]&=\mathsf E(U~\mathsf E(X\mid U))\end{align}$$
Now, because $X\mid U\sim\mathcal{Poiss}(U)$ then ...$$\mathsf E(X\mid U)=U$$
So, you can continue from here.