$Y\cap Z$ has finite codimension in $Y$ and $Z$ too, so you can choose
$y_1,\dots,y_n\in Y$ such that $Y=(Y\cap Z)\oplus \langle y_1,\dots,y_n\rangle$ (where $n:=\text{dim}\frac{Y}{Y\cap Z}$) and similarly there are $z_1,\dots,z_m\in Z$ such that $Z=(Y\cap Z)\oplus\langle z_1,\dots,z_m\rangle$.
Now we have $m=n$ (why?), so there is a linear isomorphism $\phi:\langle y_1,\dots,y_n\rangle\to\langle z_1,\dots,z_m\rangle$.
This extends to the isomorphism $\text{id}_{Y\cap Z}\oplus\phi:(Y\cap Z)\oplus \langle y_1,\dots,y_n\rangle\to(Y\cap Z)\oplus \langle z_1,\dots,z_m\rangle$, i.e. $\text{id}_{Y\cap Z}\oplus\phi:Y\to Z$ is an isomorphism, which is clearly continuous, as well as its inverse (why?).