Solve the quadratic equation y^2-5y=-4 by factoring.