Concept:
For a square matrix, the sum of eigenvalues is equal to the trace, and the product of eigenvalues is equal to the determinant.
Given matrix:
\[
A=\begin{bmatrix}2& 3x& y\end{bmatrix}
\]
Eigenvalues are
\[
4,\quad 8
\]
Step 1: Use trace.
Sum of eigenvalues:
\[
4+8=12
\]
Trace of \(A\):
\[
2+y
\]
Therefore,
\[
2+y=12
\]
\[
y=10
\]
Step 2: Use determinant.
Product of eigenvalues:
\[
4\cdot 8=32
\]
Determinant of \(A\):
\[
\det A=2y-3x
\]
Substitute \(y=10\):
\[
2(10)-3x=32
\]
\[
20-3x=32
\]
\[
-3x=12
\]
\[
x=-4
\]
Step 3: Final answer.
\[
\boxed{x=-4,\ y=10}
\]