\begin{tikzpicture}
\filldraw [fill=yellow!50!white](0,0) circle (0.5);
\filldraw [fill=yellow!50!white](1,0) circle (0.5);
\filldraw [fill=yellow!50!white](2,0) circle (0.5);
\filldraw [fill=yellow!50!white] (1,1) circle (0.5);
\filldraw [fill=yellow!50!white] (2,1) circle (0.5);
\fill (0,0) circle (0.05) node at(0,0) [below left]{P};
\node at (0,3){(1)};
\end{tikzpicture}
\hspace{3cm}
\begin{tikzpicture}
\filldraw [fill=cyan!50!white] (0,0) rectangle (5,1);
\filldraw [fill=cyan!50!white] (2,0) rectangle (3,3);
\filldraw [fill=cyan!50!white] (1,1) rectangle (4,2);
\filldraw [fill=cyan!50!white] (1,0) rectangle (2,1);
\filldraw [fill=cyan!50!white] (2,1) rectangle (3,2);
\filldraw [fill=cyan!50!white] (4,0) rectangle (5,1);
\node at (0,3){(2)};
\fill (0,0) circle (0.05) node at (0,0) [below left]{P};
\end{tikzpicture}