Find closest multiple of $19$ to $40$. We see that $2 \times 19 = 38$ is the nearest. Now subtract $38$ from $40$ to get reminder $2$. Add $2$ to quotient.
Since $2$ is less than $19$, stop the division. The reminder is $2$. The topmost line $02$ is the quotient. Remove all zeros at the start of the quotient to get the actual quotient $2$.