In simple interest, we can use the formula:
[tex]I=P\cdot r\cdot t[/tex]
Where P is the principal value, that is, the value of the loan, $9000; r is the annual rate and t is the period of loan in years.
We know Rita paid interest of $336, so
[tex]I=336[/tex]
However, the period that she had is not in years, it is in months. However, in simple interest we can just convert "t" from year to months. If she got 7 months, this is equivalent of 7/12 years, because one year has 12 months.
Thus, t = 7/12
Now, we know "I", "P" and "t", we can substitute and solve for "r":
[tex]\begin{gathered} 336=9000\cdot r\cdot\frac{7}{12} \\ \frac{336}{9000}=r\cdot\frac{7}{12} \\ 0.037333\ldots=r\cdot\frac{7}{12} \\ r=\frac{12}{7}\cdot0.037333\ldots \\ r=\frac{0.448}{7}=0.064 \end{gathered}[/tex]
In percentage, we have 6.4% of annual interest.