A fraction becomes 45, if 1 is added to both numerator and denominator. If, however, 5 is subtracted from both numerator and denominator, the fraction becomes 12. Find the fraction