How to solve a inverse variable?