We look at the division of 502094 by 40 
Let's see how many times 40 fits into 502094.

Step 1:
The number 40 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 40

Step 2:
40 goes into 50 1 times with a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 40 from 50 leaves us with 10.
Bring next digit (2) of the dividend behind the 10 and repeat the process: 102 / 40

On to step 3:
40 goes into 102 2 times with a remainder of 22.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
If we subtract 80 from 102, we get 22.
Bring next digit (0) of the dividend behind the 22 and repeat the process: 220 / 40

Moving on to step 4:
When dividing 220 by 40, we get 5 with a remainder of 20.
Use 5 as the next digit of our solution. 
Result so far: 125.0
Subtracting 200 from 220 leaves us with 20.
Include the next digit (9) from the dividend after 20, then repeat: 209 / 40

Let's proceed to step 5:
When dividing 209 by 40, we get 5 with a remainder of 9.
Write down 5 as next digit of the result. 
Result so far: 1255.0
The remainder is 9 after subtracting 200 from 209.
Take the next digit (4) from the dividend and append it to 9, then repeat: 94 / 40

Step 6:
When dividing 94 by 40, we get 2 with a remainder of 14.
Put 2 as the next digit of the answer. 
Result so far: 12552.0
Deduct 80 from 94 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 7:
When dividing 140 by 40, we get 3 with a remainder of 20.
Use 3 as the next digit of our solution. 
Result so far: 12552.3
If we subtract 120 from 140, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 8:
40 goes into 200 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 12552.35
If we take 200 away from 200, 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 9:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 12552.35
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.

Advancing to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 12552.35
If we subtract 0 from 0, we 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.

The final result is 12552.35 with a remainder of 0.0.