We divide 349886 by 40
We want to figure out the number of times 349886 can be divided by 40.

Going ahead to step 1:
40 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (4) from the dividend, attach it to 3 and continue: 34 / 40

Advancing to step 2:
40 goes into 34 0 times with a remainder of 34.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 34 to get 34.
Grab the next digit (9) from the dividend, add it to 34, then carry on: 349 / 40

Going ahead to step 3:
40 can be fit into 349 8 times, resulting in a remainder of 29.
Put 8 as the next digit of the answer. 
Result so far: 8.0
If we take 320 away from 349, we end up with 29.
Fetch the next digit (8) from the dividend, attach it to 29 and continue: 298 / 40

Moving on to step 4:
The number 40 fits into 298 7 times, leaving a remainder of 18.
Write down 7 as next digit of the result. 
Result so far: 87.0
Deduct 280 from 298 and we're left with 18.
Append the next digit (8) from the dividend to 18 and continue with: 188 / 40

On to step 5:
188 divided by 40 is 4 with a remainder of 28.
The next digit of our result is 4. 
Result so far: 874.0
The remainder is 28 after subtracting 160 from 188.
Take the next digit (6) from the dividend and append it to 28, then repeat: 286 / 40

Advancing to step 6:
The number 40 fits into 286 7 times, leaving a remainder of 6.
The next digit of our result is 7. 
Result so far: 8747.0
If we take 280 away from 286, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
60 divided by 40 is 1 with a remainder of 20.
Record the quotient 1 as the next digit in the result. 
Result so far: 8747.1
Subtracting 40 from 60 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 8747.15
If we subtract 200 from 200, we 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 9:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 8747.15
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.

Going ahead to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 8747.15
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.

The final outcome is 8747.15, with a leftover of 0.0.