Find closest multiple of $18$ to $84$. We see that $4 \times 18 = 72$ is the nearest. Now subtract $72$ from $84$ to get reminder $12$. Add $4$ to quotient.
Find closest multiple of $18$ to $127$. We see that $7 \times 18 = 126$ is the nearest. Now subtract $126$ from $127$ to get reminder $1$. Add $7$ to quotient.
Since $1$ is less than $18$, stop the division. The reminder is $1$. The topmost line $047$ is the quotient. Remove all zeros at the start of the quotient to get the actual quotient $47$.