Concept:
Three vectors are coplanar if their scalar triple product is zero.
\[
\vec{A}\cdot(\vec{B}\times\vec{C})=0
\]
Equivalently, the determinant formed by their components must be zero.
\[
\begin{vmatrix}
a_1 & a_2 & a_3
b_1 & b_2 & b_3
c_1 & c_2 & c_3
\end{vmatrix}=0
\]
Step 1: Write the vectors in component form.
\[
\vec{A}=(2,-1,1)
\]
\[
\vec{B}=(1,2,-3)
\]
\[
\vec{C}=(3,a,5)
\]
Step 2: Form the determinant for coplanarity.
\[
\begin{vmatrix}
2 & -1 & 1
1 & 2 & -3
3 & a & 5
\end{vmatrix}=0
\]
Step 3: Expand the determinant.
\[
2
\begin{vmatrix}
2 & -3
a & 5
\end{vmatrix}
+1
\begin{vmatrix}
1 & -3
3 & 5
\end{vmatrix}
+1
\begin{vmatrix}
1 & 2
3 & a
\end{vmatrix}
=0
\]
\[
2(10+3a)+1(5+9)+(a-6)=0
\]
\[
20+6a+14+a-6=0
\]
\[
28+7a=0
\]
\[
a=-4
\]
Thus,
\[
\boxed{a=-4}
\]