Find a polynomial $q(a)$ of degree less than equal to $2$ that saitsifies the condition $q(a_0)=b_0, q'(a_0)=b'_0, \ \text{and} \ q'(a_1)=b'_1,$ where $a_0,a_1,b_0,b'_0,b'_1\in \mathbb{R}$, where $a_0\ne a_1$. And give a formula of the form $q(a)=b_0k_0(a)+b'_0k_1(a)+b'_1k_2(a).$
How can I do this question? I am self teaching numerical analysis and this question is in the book An Introduction to Numerical Analysis, by Atkinson but I don't know how to do it.