If the numerator of a fraction is increased by 2 and the denominator is decreased by 4 then it becomes 2. If the numerator is decreased by 1 and the denominator is increased by 2, then it becomes 13. Find the sum of the numerator and denominator of the fraction.