GroebnerBasis[{r^2+3,w^2+w+1,(2*w+1+r)*x-1}, {x,w,r}]