we have that
the numerator is
a(x-1)(x-5)
where a is the leading coefficient of the numerator
the denominator is
(x+4)(x+1)
so

Find out the value of a
the y-intercept is (0,7)
substitute



therefore
the numerator is (28/5)(x-1)(x-5)
and
the denominator is (x+4)(x+1)