find the quotient and remainder using long division