Just a little help please!

This is a problem that came in a set of problems where the answers are set up like this: a X^b Y^c Z^d sometimes the problem might not have all components and thats fine.

an example of a problem would be: (2^1 Z^5)^1

...............................................-----------

.................................................(X^-3 )

The answer would be: 2 Z^5 X^3

Now the problem I need help on is: (Y^-1/8 Z^-3/7)

..............................................------------------

.................................................. ..(5^2 Z^9 )

As i'm sure you know, the carrots ^ mean exponents. And i don't know how to set up fartions so those dashed lines mean that it's set up as a fraction. So sorry for all these inconvienences!

Thank you all very much if you read this and try to help, This is my first post and im excited to see if anyone reads and helps. I'm in a math class online that has to be completed by august 5 and im very far behind due to my lack of math skill but hopefully this site helps! THANK YOU AGAIN!