Not 100% sure this is the right solution, but I think you basically have to use a sequence of geometric random variables (https://en.wikipedia.org/wiki/Geometric_distribution)
So let's suppose $n$ = 10. If $x = 1$, then we are interested in the number of trials to draw one unique value. Hopefully we don't need to demonstrate that you only need one trial to do this.
Now, if $x = 2$, then we need the number of trials to draw one unique value ($y_1$), and then the number of trials to draw another unique value $(y_2)$. The first success happens on the first trial with probability 1, and then the probability that it takes $k$ more trials to get the second success is given by $P(y_2 = k) = (1 - 9/10)^k(9/10)$, since we will draw a second unique value with probability 9/10.
Notice that each trial is independent here, and the only thing that changes from trial to trial is the success probability, is $1$ for the first trial, $(n-1)/n$ for all trials until we get our second success, and so on. So basically we have $x$ geometric random variables here, and we want to find the expectation of their sum.
For $i \in 1, \dots, x$, let $y_i$ denote the event that we have drawn a unique value. Because $y_i$ is a Bernoulli random variable with success probability $p_i = (n-i+1)/n$, we have
\begin{align}
E[\text{Number of trials}] &= \sum_{i = 1}^x E[y_i]\\
&= \sum_{i = 1}^x\frac{1}{p_i}\\
&= \sum_{i = 1}^x\frac{n}{n-i+1}
\end{align}