Call the fraction .

You're told that when 4 is subtracted from the numerator, the fraction is 2.

So

and when 5 is added to the denominator, the fracton is .

So

.

So now you have two linear equations

.

Solve them simultaneously, and then you can write what the fraction is.