direct and inverse class 8 maths i did it mathematics solution