A linear function g is defined by g(x)=−3x+18. If the graph of y=g(x) crosses the x-axis at (p,0) and the y-axis at (0,q), what is the value of q+p?
12
18
24
30