\definecolor{ffqqqq}{rgb}{1,0,0}
\definecolor{qqwuqq}{rgb}{0,0.39215686274509803,0}
\definecolor{qqzzff}{rgb}{0,0.6,1}
\begin{center}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-4,
xmax=2,
ymin=-1,
ymax=9,
xtick={-3,-2,...,2},
ytick={-1,0,...,4,5,6,7,8,9},]
\clip(-4,-1) rectangle (2,9);
\draw[line width=1pt,color=qqwuqq,smooth,samples=100,domain=-3:2] plot(\x,{(\x + 3) * exp(-\x)});
\draw [fill=ffqqqq] (0,3) circle (2pt);
\draw[color=ffqqqq] (0,3) node[above right] {$A$};
\draw [fill=qqzzff] (-3,0) circle (2pt);
\draw[color=qqzzff] (-3,0) node[above left] {$B$};
\draw[line width=1pt,color=ffqqqq] plot[smooth,domain=-3:2] (\x,{3 - 2*\x});
\end{axis}
\end{tikzpicture}
\end{center}