The quadratics you are looking for passing through the origin, their generic equation is
The tangent at a point whose abscissa is is :
The quadratics are tangent to both y=-2x-4 and y=8x-49 iff there exists and such that
Solve for a, b, x0 and x1.
You will find 2 quadratics.