The numerator of a fraction is 5 more than twice the denominator. Also, when 2 is added to the fraction, the numerator increases by 12. If the given fraction is squared and the numerator is divided by the denominator, then what will be the remainder?