To save space, I would like to place the following table next to each other. Each has a separate caption. I have this,

I want this,

Sample code,
\documentclass[]{memoir}
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{algorithmic}
\usepackage{algorithmicthesis}
\begin{document}
\begin{figure}
\centering
\includegraphics[scale=0.2]{figure.png}
\caption{This is the caption for figure}
\end{figure}
\begin{table}
\centering
\caption{This is the caption for table}
\begin{tabular}{cc}
1 & Item 1 \\
3 & Item 2 \\
4 & Item 3 \\
5 & Item 4 \\
5 & Item 5 \\
\end{tabular}
\end{table}
\end{document}
The solution mentioned here doesn’t allow two captions.
