How to find value for multiplication and division