How to solve fraction problems