Step 1 :
Factor out common factor $ \color{blue}{ 10x^2 } $:
$$ 30x^3y+20x^4-50x^2y^2 = 10x^2 ( 3xy+2x^2-5y^2 ) $$Step 2 :
$ 3xy+2x^2-5y^2 $ can be written as
$$ 3xy+2x^2-5y^2 = \left( x-y \right) \left( 2x+5y \right)$$The explanation for this step cannot be generated.