Let $E_1, E_2, E_3$ be three mutually exclusive events such that $P\left(E_1\right)=\frac{2+3 p}{6}, P\left(E_2\right)=\frac{2-p}{8}$ and $P\left(E_3\right)=\frac{1-p}{2}$. If the maximum and minimum values of $p$ are $p_1$ and $p_2$, then $\left(p_1+p_2\right)$ is equal to :