how to calculate direct and inverse proportion