We look at the division of 50386 by 18 
Our goal is to divide 50386 by 18.

On to step 1:
When dividing 5 by 18, we get 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 18

Step 2:
The number 18 fits into 50 2 times, leaving a remainder of 14.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 14 after subtracting 36 from 50.
Grab the next digit (3) from the dividend, add it to 14, then carry on: 143 / 18

On to step 3:
If we divide 143 by 18, we get 7 and a remainder of 17.
Write down 7 as next digit of the result. 
Result so far: 27.0
Deduct 126 from 143 and we're left with 17.
Include the next digit (8) from the dividend after 17, then repeat: 178 / 18

Advancing to step 4:
18 can be fit into 178 9 times, resulting in a remainder of 16.
Put 9 as the next digit of the answer. 
Result so far: 279.0
Subtracting 162 from 178 leaves us with 16.
Take the next digit (6) from the dividend and append it to 16, then repeat: 166 / 18

Let's proceed to step 5:
166 divided by 18 is 9 with a remainder of 4.
The next digit of our result is 9. 
Result so far: 2799.0
The remainder is 4 after subtracting 162 from 166.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 6:
18 can be fit into 40 2 times, resulting in a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 2799.2
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 7:
The number 18 fits into 40 2 times, leaving a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 2799.22
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 2799.22 with a remaining 0.004.