We're dividing 58221 by 59 
We're looking to find how many times 59 goes into 58221.

Advancing to step 1:
If we divide 5 by 59, we get 0 and 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.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 59

Advancing to step 2:
When dividing 58 by 59, we get 0 with a remainder of 58.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 58 leaves us with 58.
Append the next digit (2) from the dividend to 58 and continue with: 582 / 59

Moving on to step 3:
The number 59 fits into 582 9 times, leaving a remainder of 51.
Put 9 as the next digit of the answer. 
Result so far: 9.0
The remainder is 51 after subtracting 531 from 582.
Grab the next digit (2) from the dividend, add it to 51, then carry on: 512 / 59

Advancing to step 4:
59 can be fit into 512 8 times, resulting in a remainder of 40.
Record the quotient 8 as the next digit in the result. 
Result so far: 98.0
If we take 472 away from 512, we end up with 40.
Bring next digit (1) of the dividend behind the 40 and repeat the process: 401 / 59

Let's proceed to step 5:
If we divide 401 by 59, we get 6 and a remainder of 47.
The number 6 becomes the next digit in our result. 
Result so far: 986.0
If we take 354 away from 401, we end up with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Let's proceed to step 6:
The number 59 fits into 470 7 times, leaving a remainder of 57.
Put 7 as the next digit of the answer. 
Result so far: 986.7
The remainder is 57 after subtracting 413 from 470.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

Going ahead to step 7:
The number 59 fits into 570 9 times, leaving a remainder of 39.
The number 9 becomes the next digit in our result. 
Result so far: 986.79
If we subtract 531 from 570, we get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Moving on to step 8:
When dividing 390 by 59, we get 6 with a remainder of 36.
Use 6 as the next digit of our solution. 
Result so far: 986.796
If we subtract 354 from 390, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 9:
The number 59 fits into 360 6 times, leaving a remainder of 6.
The next digit of our result is 6. 
Result so far: 986.7966
If we take 354 away from 360, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

After the division, we end up with 986.7966 and a remainder of 6e-05.