Let
x is part of the loan with 9% interest and
y is part of the loan with 6^ interest.
We assume the time is 1 year.
We set a system we need to solve
Total loan is 18,500:
x = y = 18500
Total interest paid is 1,335:
0.09 x + 0.06 y = 1335
Solving the system above is left as an exercise.
If you need help with solving the above system, sent me a message.
(Answer: x = 7500, y = 11000).