The slopes of the two regression lines are the regression coefficients $b_{yx}$ and $b_{xy}$.
Formulas
$$b_{yx}=r\,\frac{\sigma_y}{\sigma_x},\qquad b_{xy}=r\,\frac{\sigma_x}{\sigma_y},$$
where $r$ is the coefficient of correlation and $\sigma_x,\sigma_y$ are the standard deviations.
Link to correlation
Multiplying the two coefficients gives
$$b_{yx}\cdot b_{xy}=r^{2}\quad\Longrightarrow\quad r=\pm\sqrt{b_{yx}\,b_{xy}}.$$
- $r$ takes the same sign as the two coefficients (which always share a sign).
- Since $|r|\le1$, we must have $|b_{yx}\,b_{xy}|\le1$ — a useful consistency check.
- If one coefficient exceeds $1$ in magnitude, the other must be below $1$.