I am trying to make two subtables side by side, but I don't know why the second one is below the first table. I searched around the similar questions, but still have no clue. Can someone help me fix it? Thanks!
\usepackage[letterpaper,margin=2cm]{geometry} % set page parameters suitably
\usepackage{booktabs,subcaption,graphicx}
\begin{document}
\begin{table}[h]
\begin{subtable}[t]{0.45\textwidth}
\begin{tabular}[t]{@{} l *{2}{c} @{}}
\toprule
& {Ambiguous} & {Unambiguous} \
\midrule
\multicolumn{3}{@{}l}{\textit{Dataset-1 blablablablablablabla}} \
split-1 & 170266 & 197630 \
split-2 & 21479 & 24645 \
split-3 & 21477 & 25166 \
\midrule
\multicolumn{3}{@{}l}{\textit{Dataset-2}} \
split-1 & 170266 & 197630 \
split-2 & 21479 & 24645 \
split-3 & 21477 & 25166 \
\midrule
\multicolumn{3}{@{}l}{\textit{Dataset-3}} \
split-1 & 170266 & 197630 \
split-2 & 21479 & 24645 \
split-3 & 21477 & 25166 \
\bottomrule
\end{tabular}
\end{subtable}%
\begin{subtable}[t]{0.45\textwidth}
\flushright
\begin{tabular}[t]{@{} l *{2}{c} @{}}
\toprule
& {Ambiguous} & {Unambiguous} \
\midrule
\multicolumn{3}{@{}l}{\textit{Dataset-1 blablablablablablabla}} \
split-1 & 170266 & 197630 \
split-2 & 21479 & 24645 \
split-3 & 21477 & 25166 \
\midrule
\multicolumn{3}{@{}l}{\textit{Dataset-2}} \
split-1 & 170266 & 197630 \
split-2 & 21479 & 24645 \
split-3 & 21477 & 25166 \
\midrule
\multicolumn{3}{@{}l}{\textit{Dataset-3}} \
split-1 & 170266 & 197630 \
split-2 & 21479 & 24645 \
split-3 & 21477 & 25166 \
\bottomrule
\end{tabular}
\end{subtable}
\caption{Model parameters.}
\label{tab:parameters}
\end{table}
\end{document}```
