We're dividing 49940 by 87 
Our goal is to divide 49940 by 87.

Step 1:
When dividing 4 by 87, we get 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 87

Moving on to step 2:
When dividing 49 by 87, we get 0 with a remainder of 49.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 49 leaves us with 49.
Include the next digit (9) from the dividend after 49, then repeat: 499 / 87

On to step 3:
87 can be fit into 499 5 times, resulting in a remainder of 64.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 435 from 499 and we're left with 64.
Grab the next digit (4) from the dividend, add it to 64, then carry on: 644 / 87

Moving on to step 4:
The number 87 fits into 644 7 times, leaving a remainder of 35.
Record the quotient 7 as the next digit in the result. 
Result so far: 57.0
If we subtract 609 from 644, we get 35.
Append the next digit (0) from the dividend to 35 and continue with: 350 / 87

Step 5:
87 goes into 350 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 574.0
The remainder is 2 after subtracting 348 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 6:
If we divide 20 by 87, we get 0 and a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 574.0
Subtracting 0 from 20 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 7:
The number 87 fits into 200 2 times, leaving a remainder of 26.
Use 2 as the next digit of our solution. 
Result so far: 574.02
If we subtract 174 from 200, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 8:
260 divided by 87 is 2 with a remainder of 86.
Write down 2 as next digit of the result. 
Result so far: 574.022
Subtracting 174 from 260 leaves us with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

After the division, we end up with 574.022 and a remainder of 0.0086.