Let's divide 42942874 by 18
We want to figure out the number of times 42942874 can be divided by 18.

Advancing to step 1:
18 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (2) from the dividend after 4, then repeat: 42 / 18

Advancing to step 2:
The number 18 fits into 42 2 times, leaving a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtract 36 from 42 to get 6.
Fetch the next digit (9) from the dividend, attach it to 6 and continue: 69 / 18

Advancing to step 3:
When dividing 69 by 18, we get 3 with a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 23.0
Subtract 54 from 69 to get 15.
Append the next digit (4) from the dividend to 15 and continue with: 154 / 18

On to step 4:
154 divided by 18 is 8 with a remainder of 10.
The number 8 becomes the next digit in our result. 
Result so far: 238.0
The remainder is 10 after subtracting 144 from 154.
Append the next digit (2) from the dividend to 10 and continue with: 102 / 18

Going ahead to step 5:
If we divide 102 by 18, we get 5 and a remainder of 12.
The next digit of our result is 5. 
Result so far: 2385.0
If we take 90 away from 102, we end up with 12.
Bring next digit (8) of the dividend behind the 12 and repeat the process: 128 / 18

Moving on to step 6:
If we divide 128 by 18, we get 7 and a remainder of 2.
The number 7 becomes the next digit in our result. 
Result so far: 23857.0
Deduct 126 from 128 and we're left with 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 18

Advancing to step 7:
18 can be fit into 27 1 times, resulting in a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 238571.0
Deduct 18 from 27 and we're left with 9.
Include the next digit (4) from the dividend after 9, then repeat: 94 / 18

Step 8:
18 can be fit into 94 5 times, resulting in a remainder of 4.
The next digit of our result is 5. 
Result so far: 2385715.0
Subtract 90 from 94 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 9:
When dividing 40 by 18, we get 2 with a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 2385715.2
Deduct 36 from 40 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 10:
40 divided by 18 is 2 with a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 2385715.22
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final outcome is 2385715.22, with a leftover of 0.004.