The graph of the rational function $\frac{p(x)}{q(x)}$ is shown below, with a horizontal asymptote at $y = 0$. If $q(x)$ is quadratic, $p(2)=2$, and $q(-1) = 18$, find $p(x) + q(x).$
[asy]
size(8cm);
import graph;

Label f; 
f.p=fontsize(6); 

real f(real x) {return 2*(x-1)/(3*(x-2)*(x-1));}

int gridsize = 5;
draw((-gridsize,0)--(gridsize,0), black+1bp, Arrows(8));
draw((0,-gridsize)--(0, gridsize), black+1bp, Arrows(8));
label("$x$", (gridsize, 0), E);
label("$y$", (0, gridsize), N);
label("$0$", (0,0),SE, p=fontsize(8pt));
for (int i=-gridsize+1; i<0; ++i){
    label("$"+string(i)+"$",(i,0),S, p=fontsize(8pt));
    label("$"+string(i)+"$",(0,i),E, p=fontsize(8pt));}
for (int i=1; i<=gridsize-1; ++i){
    label("$"+string(i)+"$",(i,0),S, p=fontsize(8pt));
    label("$"+string(i)+"$",(0,i),E, p=fontsize(8pt));}



draw(graph(f,-5,.85));
draw(graph(f,1.15,1.85));
draw(graph(f,2.15,5));
draw((2,-5)--(2,5), dashed);
draw(circle((1,-2/3),.15));

[/asy]
The graph has a horizontal asymptote $y = 0,$ a hole at $x=1$, and a vertical asymptote at $x=2$. Since $q(x)$ is a quadratic, and we have a horizontal asymptote at $y = 0,$ $p(x)$ must be linear (have degree 1).

Since we have a hole at $x=1$, there must be a factor of $x-1$ in both $p(x)$ and $q(x)$. Lastly, since there is a vertical asymptote at $x=2$, the denominator $q(x)$ must have a factor of $x-2$. Since $q(x)$ is quadratic, we know that $q(x) = b(x-1)(x-2)$ for some $b.$ It follows that $p(x) = a(x-1),$ for some constant $a.$ Since $p(2) = 2$, we have $a(2-1) = 2$ and $a=2.$ Since $q(-1) = 18,$ we have $b(-1-1)(-1-2) = 18$ and hence $b=3.$

So $p(x) = 2(x - 1) = 2x - 2$ and $q(x) = 3(x - 1)(x - 2) = 3x^2 - 9x + 6,$ so $p(x) + q(x) = \boxed{3x^2 - 7x + 4}.$