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

Moving on to step 1:
The number 40 fits into 1 0 times, leaving a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 40

Step 2:
The number 40 fits into 15 0 times, leaving a remainder of 15.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Append the next digit (8) from the dividend to 15 and continue with: 158 / 40

Going ahead to step 3:
The number 40 fits into 158 3 times, leaving a remainder of 38.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
The remainder is 38 after subtracting 120 from 158.
Bring next digit (0) of the dividend behind the 38 and repeat the process: 380 / 40

Advancing to step 4:
40 goes into 380 9 times with a remainder of 20.
Write down 9 as next digit of the result. 
Result so far: 39.0
If we subtract 360 from 380, we get 20.
Grab the next digit (2) from the dividend, add it to 20, then carry on: 202 / 40

Moving on to step 5:
The number 40 fits into 202 5 times, leaving a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 395.0
The remainder is 2 after subtracting 200 from 202.
Bring next digit (2) of the dividend behind the 2 and repeat the process: 22 / 40

Let's proceed to step 6:
The number 40 fits into 22 0 times, leaving a remainder of 22.
Write down 0 as next digit of the result. 
Result so far: 3950.0
Subtract 0 from 22 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 7:
220 divided by 40 is 5 with a remainder of 20.
Use 5 as the next digit of our solution. 
Result so far: 3950.5
Deduct 200 from 220 and we're left 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:
200 divided by 40 is 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 3950.55
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.

The final result is 3950.55 with a remainder of 0.0.