Samantha took out two loans totaling $6000 to pay for her first year of college. She borrowed the maximum amount she could at 3.5% simple annual interest and the remainder at 7% simple annual interest. At the end of the first year, she owed $259 in interest. How much was borrowed at each rate?