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

Moving on to step 1:
When dividing 1 by 40, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 40

Advancing to step 2:
The number 40 fits into 12 0 times, leaving a remainder of 12.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 12, we get 12.
Grab the next digit (6) from the dividend, add it to 12, then carry on: 126 / 40

Going ahead to step 3:
126 divided by 40 is 3 with a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we take 120 away from 126, we end up with 6.
Append the next digit (2) from the dividend to 6 and continue with: 62 / 40

Let's proceed to step 4:
If we divide 62 by 40, we get 1 and a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 31.0
Subtract 40 from 62 to get 22.
Take the next digit (2) from the dividend and append it to 22, then repeat: 222 / 40

Advancing to step 5:
40 goes into 222 5 times with a remainder of 22.
Write down 5 as next digit of the result. 
Result so far: 315.0
Deduct 200 from 222 and we're left with 22.
Bring next digit (4) of the dividend behind the 22 and repeat the process: 224 / 40

Moving on to step 6:
224 divided by 40 is 5 with a remainder of 24.
The next digit of our result is 5. 
Result so far: 3155.0
Subtracting 200 from 224 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 7:
If we divide 240 by 40, we get 6 and a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 3155.6
If we take 240 away from 240, 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.

Advancing to step 8:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 3155.6
Deduct 0 from 0 and we're left 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.

Let's proceed to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 3155.6
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.

After the division, we end up with 3155.6 and a remainder of 0.0.