How can I fix this mess showed in the picture added below?
I mean, I'd like to place side by side both figures, with the box at the same level and the captions at the same level too.
Here is the code used (all the packages needed are used, no need to put them here). Caption only contains a brief description because the other lines at the bottom are additional explanations and shouldn't be part of the caption as the caption itself appears in the list of "figures" at the beginning of the thesis.
\begin{figure}
\hspace*{-0.9cm}
\begin{minipage}{.5\textwidth}
\centering
\fbox{\includegraphics[scale=0.2]{Cap1/afiliados.png}}
\caption{Importe de las pensiones vs. n\'umero de afiliados y variaci\'on}.
\textit{\small{*Datos de 2017 hasta marzo.}}%\\
\small{(Fuente: Elaboraci\'on propia a partir de datos del Min. de Empleo y S.S.)}
\end{minipage}%
\begin{minipage}{.5\textwidth}
\hspace*{1.4cm}
\fbox{\includegraphics[scale=0.22]{Cap1/evolucion3.png}}
\caption{Evoluci\'on del gasto en pensiones. Datos en millones de euros y \% total del presupuesto del Estado}%\\
\small{(Fuente:} \texttt{\footnotesize{Min. de Empleo y S. S.)}}
[![enter image description here][1]][1]\end{minipage}
\end{figure}
I was thinking to scale the pictures width and height scaling but not sure.
Thanks for your support!

\fbox{\includegraphics[scale=0.2]{Cap1/afiliados.png}}is bigger than the space you are putting it in, usually it's better to use width than scale:\fbox{\includegraphics[width=.9\linewidth]{Cap1/afiliados.png}}will make it 90% the width of your minipage – David Carlisle Jul 31 '17 at 10:53