Given. Piecewise density $f(x)$ on $[0,2]$ with maximum value $3/2$ (at $x=1$); majorizing (envelope) function $t(x)=3/2$, constant over $[0,2]$; supplied random numbers (used as pairs, in order): 0.10, 0.65, 0.51, 0.08, 0.77.
Find. The acceptance-rejection procedure, and the first accepted variate from the given random numbers.
Approach. Since $t(x)$ is constant over $[0,2]$, a candidate $x$ is generated uniformly on $[0,2]$ from one random number; a second random number is compared against $f(x)/t(x)$ to accept or reject the candidate; repeat until accepted.
Procedure. Given two fresh $U(0,1)$ draws $(u_1,u_2)$: form the candidate $x=2u_1$ (uniform on the support $[0,2]$); accept $x$ if $u_2\le f(x)/t(x)$, otherwise discard the pair and draw again.
Trial 2 ($u_1=0.51,\ u_2=0.08$).
$$x = 2(0.51)=1.02\ \ (\text{in } 1\le x\le2),\qquad f(1.02)=1.5(1.02-2)^2=1.4406,\qquad \frac{f(x)}{t(x)}=\frac{1.4406}{1.5}=0.9604.$$
Since $u_2=0.08 \le 0.9604$, accept: $\boxed{x=1.02}$ is the first generated lead-time variate.
Acceptance-rejection: a candidate point $(x, u_2\cdot t(x))$ that falls ABOVE the $f(x)$ curve is rejected (trial 1); one that falls below is accepted (trial 2), yielding the variate $x=1.02$.