LaTeX
The graph of \(\displaystyle\frac{1}{2}x+ay-3=0\) passes through \(y=2\) when \(x=3\). Find the value of \(a\), where \(a\in R\).