There was a question on my quiz asking 5/6x=25 what is x. I got the answer 30.12 but my teacher says it is wrong because the answer is 30. I don't understand how to get just 30

Multiply both sides by 6/5

5/6x * 6/5 = 25 (6/5)

x = 30