Two consecutive numbers are x and x+1.
Clearly, x is the lesser, and x+1 is the largest.
The sum of their squares is
![x^2+(x+1)^2 = x^2+x^2+2x+1 = 2x^2+2x+1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/q5h89edp66t4ndmofl7378bg3k21c4sanv.png)
If we add this sum and the lesser we have
![2x^2+2x+1+x=2x^2+3x+1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/tp6qgln4z5pwjjkz3wchks0r5ou0t0rths.png)
We want this quantity to be 21, so we have
![2x^2+3x+1=21 \iff 2x^2+3x-20=0](https://img.qammunity.org/2020/formulas/mathematics/middle-school/61ctctwred2btqryy8efc4zd0h5l8ztajs.png)
The solutions of this equation are
![x=-4,\quad x=(5)/(2)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/j0bic07eutr1yw3s1vnjixjyuih405kyij.png)
Since we want integers, the numbers are -4 and -3.