Solving linear equations using multiplication and division