\begin{tikzpicture}[xscale=-1,yscale=-1]
\draw[yshift=0.5cm] (1,0) grid ++(5,6.4);
\node [right] at (1,1) {5};
\foreach \x/\y in {3/7, 4/6, 5/7} {
\fill ($(\x,\y)+(0,-4)$) circle (2mm);
}
\end{tikzpicture}
\begin{tikzpicture}[xscale=-1,yscale=-1]
\draw[yshift=0.5cm] (1,4) grid ++(5,6.4);
\node [right] at (1,5) {5};
\foreach \x/\y in {3/7, 4/6, 5/7} {
\fill (\x,\y) circle (2mm);
}
\end{tikzpicture}