We're dividing 222838 by 40 
Let's see how many times 40 fits into 222838.

Advancing to step 1:
When dividing 2 by 40, we get 0 with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 40

On to step 2:
If we divide 22 by 40, we get 0 and a remainder of 22.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 22 leaves us with 22.
Bring next digit (2) of the dividend behind the 22 and repeat the process: 222 / 40

Let's proceed to step 3:
If we divide 222 by 40, we get 5 and a remainder of 22.
The next digit of our result is 5. 
Result so far: 5.0
Deduct 200 from 222 and we're left with 22.
Take the next digit (8) from the dividend and append it to 22, then repeat: 228 / 40

Going ahead to step 4:
40 goes into 228 5 times with a remainder of 28.
Use 5 as the next digit of our solution. 
Result so far: 55.0
Deduct 200 from 228 and we're left with 28.
Bring next digit (3) of the dividend behind the 28 and repeat the process: 283 / 40

Going ahead to step 5:
40 goes into 283 7 times with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 557.0
If we subtract 280 from 283, we get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 40

Moving on to step 6:
40 goes into 38 0 times with a remainder of 38.
Use 0 as the next digit of our solution. 
Result so far: 5570.0
Subtract 0 from 38 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 7:
The number 40 fits into 380 9 times, leaving a remainder of 20.
Write down 9 as next digit of the result. 
Result so far: 5570.9
If we take 360 away from 380, we end up 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.

Let's proceed to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 5570.95
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 5570.95
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 5570.95
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 5570.95, with a leftover of 0.0.