98874 ÷ 8 = 12359 R2
Let's divide 98874 by 8.

Step 1:
8 goes into 9 1 times with a remainder of 1.
Write down 1 as next digit of of the result. 
Result so far: 1
Subtract 8 from 9 to get 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 8

Step 2:
8 goes into 18 2 times with a remainder of 2.
Write down 2 as next digit of of the result. 
Result so far: 12
Subtract 16 from 18 to get 2.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 8

Step 3:
8 goes into 28 3 times with a remainder of 4.
Write down 3 as next digit of of the result. 
Result so far: 123
Subtract 24 from 28 to get 4.
Bring next digit (7) of the dividend behind the 4 and repeat the process: 47 / 8

Step 4:
8 goes into 47 5 times with a remainder of 7.
Write down 5 as next digit of of the result. 
Result so far: 1235
Subtract 40 from 47 to get 7.
Bring next digit (4) of the dividend behind the 7 and repeat the process: 74 / 8

Step 5:
8 goes into 74 9 times with a remainder of 2.
Write down 9 as next digit of of the result. 
Result so far: 12359
Subtract 72 from 74 to get 2.

The final result is 12359 with a remainder of 2.