Using the variable x to represent the cost of each soda, we can write the following equation to represent the balance in Edward account:
[tex]38-12\cdot x=14[/tex]Now, solving this equation, we have:
[tex]\begin{gathered} 38-14=12x \\ 12x=24 \\ x=\frac{24}{12} \\ x=2 \end{gathered}[/tex]So the cost of each soda is $2.