The total loan was $18,000.
Let's set x as the amount that was loaned at 8% (0.08 in decimal form)
Thus, the amount that was loaned at 16% (0.16 in decimal form) is (18,000-x).
If in one year the total interest received was $2500, we can state the next equation:
[tex]0.08x+0.16(18,000-x)=2500[/tex]Apply the distributive property and solve for x:
[tex]\begin{gathered} 0.08x+0.16\cdot18,000-0.16\cdot x=2500 \\ 0.08x+2880-0.16x=2500 \\ -0.08x+2880=2500 \\ \text{Subtract 2880 from both sides} \\ -0.08x+2880-2880=2500-2880 \\ -0.08x=-380 \\ \text{Divide both sides by -0.08} \\ \frac{-0.08x}{-0.08}=\frac{-380}{-0.08} \\ \text{Simplify} \\ x=4750 \end{gathered}[/tex]So, of the $18,000 the bank loaned $4750 at 8%.