Suppose that the inverse of the function \(f(x)=\sqrt{ax+b}\) is given by \(f^{-1}(x) = -(a+2)x^2+(2b+1)\)for all x satisfying ax+b \geq 0. Find a+b.
a + b = 7.