$g(x): \mathbb{Z} \rightarrow \mathbb{Z}$ is a function that satisfies $$g(x)+g(y)=g(x+y)-xy$$ If $g(23)=0$, what is the sum of all possible values of $g(35)$?