how to solve ratio problems