%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Please do not change the following statements. You must start from line 43 "==>start from here"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt, reqno]{amsart}
\usepackage{amsmath, amsthm, amscd, amsfonts, amssymb, graphicx, color}
\usepackage[bookmarksnumbered, colorlinks, plainpages]{hyperref}
%\usepackage{algorithm2e}
\usepackage{subcaption}
%\usepackage{longtable}
%\usepackage{table} %\usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry}
\usepackage{float}
%\usepackage{xspace}
%\usepackage{algorithm}
%\usepackage{algorithmic}
\newenvironment{alteralgorithm}{}{\smallskip\hrule}
\newcommand{\altercaption}[1]{\refstepcounter{algorithm}%
\addcontentsline{loa}{algorithm}{\protect\numberline{\thealgorithm}#1}%
\noindent\hrule height .8pt
\smallskip\noindent
\textbf{Algorithm: \thealgorithm} #1
\smallskip
\hrule}

%\renewcommand\labelenumi{(\arabic{enumii})}
\renewcommand{\labelenumi}{\arabic{enumi}.}
\renewcommand\labelenumii{\theenumi.\arabic{enumii}.}
\renewcommand{\labelenumiii}{\theenumi.\arabic{enumii}.\arabic{enumiii}.}
%\renewcommand\labelenumiii{\theenumi.\arabic{enumii}.\arabic{enumii}.}
%\usepackage[noend]{algpseudocode}
%\usepackage[ruled,vlined]{algorithm2e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If you want to insert other packages. Insert them here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\makeatletter \oddsidemargin.9375in \evensidemargin \oddsidemargin
\marginparwidth1.9375in \makeatother

\def\affilfont{\normalfont\fontsize{10}{12}\selectfont\centering}
\def\affil#1{\par\vskip12pt{\affilfont#1\par}\vskip15pt}
\def\Speaker{$^{*}$\protect\footnotetext{$^{*}$ S\lowercase{peaker.}}}
\def\authorsaddresses#1{\dedicatory{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{xca}[theorem]{Exercise}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\numberwithin{equation}{section}
\makeatletter
\def\BState{\STATE\hskip-\ALG@thistlm}
\makeatother
\begin{document}
\setcounter{page}{1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Please do not remove the following statement.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{table}[H]
  \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{\textwidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  
\begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
   \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
   \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
   \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
   \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
   \begin{subtable}[t]{.5\linewidth}%
    \centering%
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 1}\label{table1}
  \end{subtable}%
  \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
   \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
   \begin{subtable}[t]{.5\linewidth}
    \centering
    \begin{tabular}{cc}
        0 & 1 \\
        2 & 3 \\
    \end{tabular}
    \caption{table 2}
  \end{subtable}
  \caption{tables}\label{tables}
\end{table}
\begin{table}[H]
\caption{ جدول‌های عضویت برای 10 معلم در مرحله اول \label{dm}}
\subfloat[معلم 1]{
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline 
  & $T_{11}$ & $T_{12} $& $T_{13} $ & $T_{14}$ & $S_{1}$ & $S_{2}$\\ 
\hline 
$T_{11}$ & 0 & 0 & 0 & 0 & l & l \\ 
\hline 
$T_{12} $& 0 & 0 & 0 & 0 &  m & h\\ 
\hline 
$T_{13} $& 0 & 0 & 0 & 0 & m & m \\ 
\hline 
$T_{14}$ & 0 & 0 & 0 & 0 & h & h \\ 
\hline 
$S_{1}$ & l & m & m & h & 0 & 0 \\ 
\hline 
$ S_{2} $& l & h & m & h & 0 & 0 \\ 
\hline 
\end{tabular} }
\qquad
\subfloat[معلم 2]{
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline 
  & $T_{21}$ & $T_{22} $& $T_{23} $ & $T_{24}$ & $S_{1}$ & $S_{2}$\\ 
\hline 
$T_{21}$ & 0 & 0 & 0 & 0 & m & l \\ 
\hline 
$T_{22} $& 0 & 0 & 0 & 0 &  l & h\\ 
\hline 
$T_{23} $& 0 & 0 & 0 & 0 & l & m \\ 
\hline 
$T_{24}$ & 0 & 0 & 0 & 0 & h & l \\ 
\hline 
$S_{1}$ & m & l & l & h & 0 & 0 \\ 
\hline 
$ S_{2} $& l & h & m & l & 0 & 0 \\ 
\hline 
\end{tabular}}
\end{table}
\end{document}
