Your attempt is incorrect since the variables $y_1$ and $y_4$ can be odd. For instance, the ordered quadruple $(7, 9, 11, 10)$ satisfies the equation $2x_1 + x_2 + x_3 + 2x_4 = 54$, as do the ordered quadruples $(12, 5, 7, 9)$, and $(5, 13, 9, 11)$.
You evidently know that the number of solutions of the equation
$$x_1 + x_2 + \cdots + x_k = n$$
in the nonnegative integers is given by the formula
$$\binom{n + k - 1}{k - 1}$$
Since $x_2 + x_3 = 54 - 2x_1 - 2x_4$ is even, $x_2$ and $x_3$ must have the same parity, as Cameron Buie pointed out in the comments.
Let's consider cases.
Suppose $x_2$ and $x_3$ are both even. Then there exist nonnegative integers $y_2$ and $y_3$ such that $x_2 = 2y_2$ and $x_3 = 2y_3$. Substituting $2y_2$ for $x_2$ and $2y_3$ for $x_3$ in the equation
$$2x_1 + x_2 + x_3 + 2x_4 = 54 \tag{1}$$
yields
\begin{align*}
2x_1 + 2y_2 + 2y_3 + 2x_4 & = 54\\
x_1 + y_2 + y_3 + x_4 & = 27 \tag{2}
\end{align*}
Notice that equation $2$ is an equation in the nonnegative integers. Therefore, it has
$$\binom{27 + 4 - 1}{4 - 1}$$
solutions.
Suppose $x_2$ and $x_3$ are both odd. Then there exist nonnegative integers $z_2$ and $z_3$ such that $x_2 = 2z_2 + 1$ and $x_3 = 2z_3 + 1$. Substituting $2z_2 + 1$ for $x_2$ and $2z_3 + 1$ for $x_3$ in equation $1$ yields
\begin{align*}
2x_1 + 2z_2 + 1 + 2z_3 + 1 + 2x_4 & = 54\\
2x_1 + 2z_2 + 2z_3 + x_4 & = 52\\
x_1 + z_2 + z_3 + x_4 & = 26 \tag{3}
\end{align*}
Notice that equation $3$ is also an equation in the nonnegative integers. Therefore, it has
$$\binom{26 + 4 - 1}{4 - 1}$$
solutions.
Since the two cases are mutually exclusive and exhaustive, you can obtain the number of solutions of equation $1$ in the nonnegative integers by adding the number of solutions of equation $3$ to the number of solutions of equation $2$.