Find closest multiple of $13$ to $39$. We see that $3 \times 13 = 39$ is the nearest. Now subtract $39$ from $39$ to get reminder $0$. Add $3$ to quotient.
Find closest multiple of $13$ to $36$. We see that $2 \times 13 = 26$ is the nearest. Now subtract $26$ from $36$ to get reminder $10$. Add $2$ to quotient.
Since $10$ is less than $13$, stop the division. The reminder is $10$. The topmost line $0302$ is the quotient. Remove all zeros at the start of the quotient to get the actual quotient $302$.