We're dividing 5040 by 58 
We want to divide 5040 by 58.

Advancing to step 1:
5 divided by 58 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 58

Advancing to step 2:
When dividing 50 by 58, we get 0 with a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 50, we get 50.
Append the next digit (4) from the dividend to 50 and continue with: 504 / 58

On to step 3:
58 can be fit into 504 8 times, resulting in a remainder of 40.
The next digit of our result is 8. 
Result so far: 8.0
Subtracting 464 from 504 leaves us with 40.
Append the next digit (0) from the dividend to 40 and continue with: 400 / 58

Going ahead to step 4:
The number 58 fits into 400 6 times, leaving a remainder of 52.
Put 6 as the next digit of the answer. 
Result so far: 86.0
If we take 348 away from 400, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

On to step 5:
58 can be fit into 520 8 times, resulting in a remainder of 56.
Record the quotient 8 as the next digit in the result. 
Result so far: 86.8
The remainder is 56 after subtracting 464 from 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Step 6:
When dividing 560 by 58, we get 9 with a remainder of 38.
Write down 9 as next digit of the result. 
Result so far: 86.89
Deduct 522 from 560 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 7:
If we divide 380 by 58, we get 6 and a remainder of 32.
Write down 6 as next digit of the result. 
Result so far: 86.896
If we subtract 348 from 380, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 8:
58 can be fit into 320 5 times, resulting in a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 86.8965
If we subtract 290 from 320, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 9:
300 divided by 58 is 5 with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 86.89655
If we subtract 290 from 300, we 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.

The quotient of the division is 86.89655, and the remainder is 1e-05.