Find closest multiple of $24$ to $25$. We see that $1 \times 24 = 24$ is the nearest. Now subtract $24$ from $25$ to get reminder $1$. Add $1$ to quotient.
Find closest multiple of $24$ to $170$. We see that $7 \times 24 = 168$ is the nearest. Now subtract $168$ from $170$ to get reminder $2$. Add $7$ to quotient.
Since $2$ is less than $24$, stop the division. The reminder is $2$. The topmost line $0107$ is the quotient. Remove all zeros at the start of the quotient to get the actual quotient $107$.