Find closest multiple of $59$ to $582$. We see that $9 \times 59 = 531$ is the nearest. Now subtract $531$ from $582$ to get reminder $51$. Add $9$ to quotient.
Since $51$ is less than $59$, stop the division. The reminder is $51$. The topmost line $009$ is the quotient. Remove all zeros at the start of the quotient to get the actual quotient $9$.