888777 ÷ 40 
We want to divide 888777 by 40.

Step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Include the next digit (8) from the dividend after 8, then repeat: 88 / 40

On to step 2:
If we divide 88 by 40, we get 2 and a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 80 from 88 leaves us with 8.
Take the next digit (8) from the dividend and append it to 8, then repeat: 88 / 40

Step 3:
The number 40 fits into 88 2 times, leaving a remainder of 8.
The next digit of our result is 2. 
Result so far: 22.0
Deduct 80 from 88 and we're left with 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 40

Going ahead to step 4:
40 goes into 87 2 times with a remainder of 7.
Write down 2 as next digit of the result. 
Result so far: 222.0
Deduct 80 from 87 and we're left with 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 40

Step 5:
The number 40 fits into 77 1 times, leaving a remainder of 37.
The next digit of our result is 1. 
Result so far: 2221.0
Subtracting 40 from 77 leaves us with 37.
Bring next digit (7) of the dividend behind the 37 and repeat the process: 377 / 40

Step 6:
40 can be fit into 377 9 times, resulting in a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 22219.0
The remainder is 17 after subtracting 360 from 377.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 7:
When dividing 170 by 40, we get 4 with a remainder of 10.
Record the quotient 4 as the next digit in the result. 
Result so far: 22219.4
Subtract 160 from 170 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
The next digit of our result is 2. 
Result so far: 22219.42
The remainder is 20 after subtracting 80 from 100.
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 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 22219.425
Subtracting 200 from 200 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.

Moving on to step 10:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 22219.425
If we subtract 0 from 0, we get 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 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 22219.425
Subtract 0 from 0 to get 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 22219.425, with a leftover of 0.0.