We look at the division of 50882 by 40 
Our goal is to divide 50882 by 40.

Step 1:
40 goes into 5 0 times with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 40

On to step 2:
When dividing 50 by 40, we get 1 with a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 10 after subtracting 40 from 50.
Grab the next digit (8) from the dividend, add it to 10, then carry on: 108 / 40

On to step 3:
When dividing 108 by 40, we get 2 with a remainder of 28.
The next digit of our result is 2. 
Result so far: 12.0
Subtracting 80 from 108 leaves us with 28.
Fetch the next digit (8) from the dividend, attach it to 28 and continue: 288 / 40

On to step 4:
If we divide 288 by 40, we get 7 and a remainder of 8.
The number 7 becomes the next digit in our result. 
Result so far: 127.0
Deduct 280 from 288 and we're left with 8.
Take the next digit (2) from the dividend and append it to 8, then repeat: 82 / 40

On to step 5:
The number 40 fits into 82 2 times, leaving a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 1272.0
If we take 80 away from 82, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 6:
If we divide 20 by 40, we get 0 and a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 1272.0
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 7:
When dividing 200 by 40, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 1272.05
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.

On to step 8:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 1272.05
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.

Let's proceed to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 1272.05
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 quotient of the division is 1272.05, and the remainder is 0.0.