You would have observed that the X^-3 inthe denominator became X^+3 in the numerator. Similarly Y^-1/8 in the numerator will become Y^+1/8 in the denominator. Similarly for Z
Again,Law of Indices states that A^m x A^n = A^(m+n).Do that for Z.
How did the negative become positive? Just picture the x^-3 being multiplied with X^+3. By the above law that would give youX^0 which = 1.However,you cannot simply multiply the denominator and not the numerator.So you multiply the numerator also with X^+3.
Come back with a post if you get stuck somewhere.