Finding fraction between given fractions