we have that
y=x²+3x-5
y=4x+1
using a graph tool
see the attached figure
the solution are the points
(-2,-7)
(3,13)
the solution obtained by the student
(-2,0)
(3,0)
is incorrect because the values of the coordinate y are incorrect
the values of x are correct
x1=-2
x2=3
with those values of x obtained, the student had to substitute it in any of the two equations to obtain the value of y
so
for x=3
y=4x+1------> 4*(3)+1-----> y=13
for x=-2
y=4x+1------> 4*(-2)+1-----> y=-7