Given a quadrature formula for functions $f: \Bbb R \rightarrow \Bbb R$ of the form
$$Q[f] := 2/3f(x) + 1/3f(y) \approx \int_0^1 f(z) dz,$$
determine every $(x,y)^T \in \Bbb R^2$ such that the formula integrates polynomials of maximal degree exactly, so
$$Q[p] = \int_0^1 p(z) dz.$$
I know that a quadrature formula can integrate polynomials of maximal degree $2(n-1)$, so in this case, we would have to determine the formula for a base of the form $1, x, x^2, x^3$. Now I know how I would have to determine the formula when I have to find the weights $w$, but I don't know how I would go about this when I have to find the $x, y$. Can anybody explain to me how I would have to proceed in such a case?