This question was asked in Ex 2.4,5
how to do long division method 

Iqbal Khan's image