$$y=DB-2$$
$\left\{\begin{matrix}B=\frac{y+2}{D}\text{, }&D\neq 0\\B\in \mathrm{C}\text{, }&y=-2\text{ and }D=0\end{matrix}\right.$
$\left\{\begin{matrix}D=\frac{y+2}{B}\text{, }&B\neq 0\\D\in \mathrm{C}\text{, }&y=-2\text{ and }B=0\end{matrix}\right.$
$\left\{\begin{matrix}B=\frac{y+2}{D}\text{, }&D\neq 0\\B\in \mathrm{R}\text{, }&y=-2\text{ and }D=0\end{matrix}\right.$
$\left\{\begin{matrix}D=\frac{y+2}{B}\text{, }&B\neq 0\\D\in \mathrm{R}\text{, }&y=-2\text{ and }B=0\end{matrix}\right.$