\(\Rightarrow4\left(3x+1\right)=2^4=16\\ \Rightarrow3x+1=16:4=4\\ \Rightarrow3x=4-1=3\\ \Rightarrow x=3:3=1\)
\(\Rightarrow2^2\left(3x+1\right)=2^{2022-2018}\\ \Rightarrow2^2\left(3x+1\right)=2^4\\ \Rightarrow3x+1=2^4:2^2\\ \Rightarrow3x+1=2^{4-2}\\ \Rightarrow3x+1=2^2\\ \Rightarrow3x+1=4\\ \Rightarrow3x=4-1\\ \Rightarrow3x=3\\ \Rightarrow x=3:3\\ \Rightarrow x=1\)