how to solve some direct and inverse proportion?