We're dividing 5942 by 58 
We're looking to find how many times 58 goes into 5942.

Advancing to step 1:
When dividing 5 by 58, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 58

On to step 2:
59 divided by 58 is 1 with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 58 from 59, we get 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 58

Step 3:
If we divide 14 by 58, we get 0 and a remainder of 14.
The next digit of our result is 0. 
Result so far: 10.0
Subtract 0 from 14 to get 14.
Bring next digit (2) of the dividend behind the 14 and repeat the process: 142 / 58

Let's proceed to step 4:
58 can be fit into 142 2 times, resulting in a remainder of 26.
Put 2 as the next digit of the answer. 
Result so far: 102.0
Deduct 116 from 142 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 5:
The number 58 fits into 260 4 times, leaving a remainder of 28.
Put 4 as the next digit of the answer. 
Result so far: 102.4
If we take 232 away from 260, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 6:
58 goes into 280 4 times with a remainder of 48.
Put 4 as the next digit of the answer. 
Result so far: 102.44
If we subtract 232 from 280, we get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

After the division, we end up with 102.44 and a remainder of 0.048.