I have been trying to include 4 subfigures but none of the code I have tried has worked but one. I think it is due to usepackage interference but I don't know. Anyway I manage to get the following:
\begin{figure}[ht]
\subfloat[first image]{
\begin{minipage}[c][1\width]{
0.3\textwidth}
\centering
\includegraphics[width=1\textwidth]{6.png}
\end{minipage}}
\hfill
\subfloat[second image]{
\begin{minipage}[c][1\width]{
0.3\textwidth}
\centering
\includegraphics[width=1.1\textwidth]{6.png}
\end{minipage}}
\hfill
\subfloat[third image]{
\begin{minipage}[c][1\width]{
0.3\textwidth}
\centering
\includegraphics[width=1.2\textwidth]{6}
\end{minipage}}
\hfill
\subfloat[fourth image]{
\begin{minipage}[c][1\width]{
0.3\textwidth}
\centering
\includegraphics[width=1.2\textwidth]{6}
\end{minipage}}
\caption{}
\end{figure}
It gives me the output in the figure below. 
My question is if I can rearrange these so I have two subfigures at the top and two subfigures at the bottom?

\hfillbetween the second and third\subfloatwith an empty line? – leandriis May 14 '21 at 16:09a \hfill b \hfill c \hfill dso at least one word space between each and fitting as many as possible on the line, you wanta\hfill bblank linec\hfill dso two paragraphs with two in each. – David Carlisle May 14 '21 at 17:12