$$y=x^{2}-6x+9; y+x=5$$
$x=4\text{, }y=1$
$x=1\text{, }y=4$