If the numerator of a fraction is increased by $2$ and the denominator by $1$, it becomes $\displaystyle \frac{5}{8}$ and if the numerator and the denominator of the same fraction are each increased by $1$, the fraction becomes equal to $\displaystyle \frac{1}{2}$. Find the fraction.
I tried, Let the numerator of the fraction be $x$, Let the denominator of the fraction be $y$ Therefore, Original fraction is $\displaystyle \frac{x}{y}$.
$$ \left\{ \begin{eqnarray*} \frac{x+2}{y+1}=\frac{5}{8} \\[2mm] \frac{x+1}{y+1}=\frac{1}{2} \\ \end{eqnarray*} \right. $$
What should I do now?