40304 ÷ 12 
We're looking to find how many times 12 goes into 40304.

Let's proceed to step 1:
If we divide 4 by 12, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 12

Advancing to step 2:
12 goes into 40 3 times with a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtract 36 from 40 to get 4.
Bring next digit (3) of the dividend behind the 4 and repeat the process: 43 / 12

Step 3:
If we divide 43 by 12, we get 3 and a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 33.0
If we take 36 away from 43, we end up with 7.
Bring next digit (0) of the dividend behind the 7 and repeat the process: 70 / 12

Let's proceed to step 4:
12 can be fit into 70 5 times, resulting in a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 335.0
If we subtract 60 from 70, we get 10.
Take the next digit (4) from the dividend and append it to 10, then repeat: 104 / 12

Let's proceed to step 5:
12 goes into 104 8 times with a remainder of 8.
The next digit of our result is 8. 
Result so far: 3358.0
If we take 96 away from 104, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 6:
If we divide 80 by 12, we get 6 and a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 3358.6
Subtract 72 from 80 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 7:
The number 12 fits into 80 6 times, leaving a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 3358.66
The remainder is 8 after subtracting 72 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Our division results in 3358.66 with a remaining 0.008.