8x^3-125

X^Y^3-X^2Y^5

Pls show me steps

8x^3-125

This is a difference of cubes which has the pattern

A^3 - B^3 = (A-B)(A^2 + AB + B^2)

so 8x^3-125
= (2x - 5)(4x^2 + 10x + 25)

you have a typo in your second, but it looks like there would be a common factor.