Solving problems with rational numbers in fraction form