Usually you subtract the exponents...like this
x^8
x^5
the solution would be x^3
hope this helped :D