You have to take each number in the dividend (number being divided) and divide it by the number in the divisor (number that is dividing). Here you would take 9, the first number in the dividend and divide it by 6, and you would put that in the first space of the quotient (answer). You would then take that number and multiply it by 6 and place it in the space below. Subtract 6 from 9 and get 3. Drop down the 6 to get 36. Take 36 and divide that by the divisor 6 and get 6 next to the number 1 you calculated earlier to get your answer 16. Take 6 and multiply it back to get 36 and subtract it from 36 to get a remainder of 0.
I showed how to do it visually in the attachment just in case this explanation didn't make any sense
This relation is a function because a there should be no repeating x-coordinates in the relation for it to be a function and that is exactly what happens in this relation.