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