با تشكر از راهنمايي شما
\documentclass{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=3cm]{fig a}
\caption{aaaaa}
\label{figa}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\caption{table b}
\begin{tabular}{|c|c|}
\hline
a&v \\
\hline
\end{tabular}
\end{subfigure}
\caption{figure and table}
\label{fig:test}
\end{figure}
\end{document}