(2p^q3)/5p0q/q5

that is very bogus notation. Try rewriting it with ^ denoting a power, as

x^2 = x squared

And lose the combined fractions. Use parentheses to delineate the meaning.

2/3/4 might be (2/3)/4 or 2/(3/4) which are not the same.