Caitlyn is correct. Both factored correctly but the reason Gabby is wrong is because of the Zero Product Property, which says if (x-4)(x+1)=0, then (x-4)=0 or (x+1)=0.
If (x-4)=0, then the value of x must be 4. If (x+1)=0, then the value of x must be -1.