solution to divide