Answer: 2
Step-by-step explanation:
[tex]{12x+2}=\frac{18+34}{2}\\\\12x+2=26\\\\12x=24\\\\x=\boxed{2}[/tex]