A student takes out 2 loans to pay for college. One loan at 9% interest and the other at 12% interest.

The total amount borrowed is $65,000, and the interest after 1 year for both loans is $6,360.

Find the amount of each loan.