How do I put an image on the left of right-aligned text

Use two minipages next to each other:

\documentclass[12pt]{article}

\usepackage[pass,showframe]{geometry}% just to show the page margins

\usepackage[demo]{graphicx}% remove demo option in actual document

\begin{document}
\noindent\begin{minipage}{0.3\textwidth}% adapt widths of minipages to your needs
\includegraphics[width=\linewidth]{yourimage}
\end{minipage}%
\hfill%
\begin{minipage}{0.6\textwidth}\raggedleft
Yesterday,\\
all my troubles seemed so far away\\
Now it looks as though they're here to stay\\
Oh, I believe in yesterday.
\end{minipage}
\end{document}

Here's another screenshot with \fboxes around the minipages and with \dotfill instead of \hfill to make it more obvious how this is constructed. (You wouldn't ever use this in an actual document, obviously.)


Use minipage. Put each section inside a minipage and specify the required linewidth for each. Example:

\begin{document}
\begin{minipage}{0.3\textwidth}
\includegraphics[width=\linewidth]{expectation.PNG}
\end{minipage}
\begin{minipage}{0.6\textwidth}\raggedleft
This test is supposed\\
to be algnes\\
to left\\
\end{minipage}
\noindent
\\
this is perfect it seems

Finally, it will look like: