We look at the division of 39850 by 40 
We want to divide 39850 by 40.

Moving on to step 1:
3 divided by 40 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 40

Step 2:
40 goes into 39 0 times with a remainder of 39.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Append the next digit (8) from the dividend to 39 and continue with: 398 / 40

Moving on to step 3:
The number 40 fits into 398 9 times, leaving a remainder of 38.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we subtract 360 from 398, we get 38.
Include the next digit (5) from the dividend after 38, then repeat: 385 / 40

Let's proceed to step 4:
If we divide 385 by 40, we get 9 and a remainder of 25.
Put 9 as the next digit of the answer. 
Result so far: 99.0
Deduct 360 from 385 and we're left with 25.
Take the next digit (0) from the dividend and append it to 25, then repeat: 250 / 40

Going ahead to step 5:
250 divided by 40 is 6 with a remainder of 10.
The number 6 becomes the next digit in our result. 
Result so far: 996.0
Subtracting 240 from 250 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 6:
100 divided by 40 is 2 with a remainder of 20.
The next digit of our result is 2. 
Result so far: 996.2
If we subtract 80 from 100, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 7:
When dividing 200 by 40, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 996.25
Subtract 200 from 200 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 996.25
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 996.25
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 996.25 with a remainder of 0.0.