We divide 12224 by 31
The aim is to understand the frequency of 31 in 12224.

Advancing to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 31

Going ahead to step 2:
If we divide 12 by 31, we get 0 and a remainder of 12.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 12 after subtracting 0 from 12.
Fetch the next digit (2) from the dividend, attach it to 12 and continue: 122 / 31

Advancing to step 3:
31 can be fit into 122 3 times, resulting in a remainder of 29.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 93 from 122 to get 29.
Bring next digit (2) of the dividend behind the 29 and repeat the process: 292 / 31

Let's proceed to step 4:
If we divide 292 by 31, we get 9 and a remainder of 13.
Put 9 as the next digit of the answer. 
Result so far: 39.0
If we subtract 279 from 292, we get 13.
Take the next digit (4) from the dividend and append it to 13, then repeat: 134 / 31

Step 5:
31 goes into 134 4 times with a remainder of 10.
Use 4 as the next digit of our solution. 
Result so far: 394.0
Deduct 124 from 134 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 6:
If we divide 100 by 31, we get 3 and a remainder of 7.
The next digit of our result is 3. 
Result so far: 394.3
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
If we divide 70 by 31, we get 2 and a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 394.32
Deduct 62 from 70 and we're left 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 8:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 394.322
Subtract 62 from 80 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 394.322 and a remainder of 0.0018.