Answer
$x=\frac{1}{2}(y+3)$
When output $y=2$,
Input $x=\frac{5}{2}$
Work Step by Step
$y=2x-3$
Add $3$ on both sides of the equation to get
$y+3=2x-3+3$
$\implies y+3=2x$
Now, divide both sides by $2$.
Then, $\frac{y+3}{2}=x$
Or $x=\frac{1}{2}(y+3)$
When output $y=2$,
Input $x=\frac{1}{2}(2+3)=\frac{5}{2}$