Solving related rates problems