58793 ÷ 40 
Our goal is to divide 58793 by 40.

On to step 1:
40 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 40

On to step 2:
When dividing 58 by 40, we get 1 with a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 18 after subtracting 40 from 58.
Grab the next digit (7) from the dividend, add it to 18, then carry on: 187 / 40

Moving on to step 3:
40 goes into 187 4 times with a remainder of 27.
Use 4 as the next digit of our solution. 
Result so far: 14.0
The remainder is 27 after subtracting 160 from 187.
Take the next digit (9) from the dividend and append it to 27, then repeat: 279 / 40

Moving on to step 4:
When dividing 279 by 40, we get 6 with a remainder of 39.
The number 6 becomes the next digit in our result. 
Result so far: 146.0
Deduct 240 from 279 and we're left with 39.
Fetch the next digit (3) from the dividend, attach it to 39 and continue: 393 / 40

Moving on to step 5:
40 goes into 393 9 times with a remainder of 33.
Put 9 as the next digit of the answer. 
Result so far: 1469.0
If we subtract 360 from 393, we get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Step 6:
330 divided by 40 is 8 with a remainder of 10.
Put 8 as the next digit of the answer. 
Result so far: 1469.8
Deduct 320 from 330 and we're left with 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 7:
40 goes into 100 2 times with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 1469.82
If we take 80 away from 100, we end up 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.

Moving on 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: 1469.825
Subtract 200 from 200 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.

On to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 1469.825
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.

Moving on to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 1469.825
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.

In conclusion, the division gives 1469.825 with a balance of 0.0.