A college used a $5,000 gift from an alumnus to make two student loans. The first was at 5% annual simple interest to a nursing student. The second was at 7% annual simple interest to a business major. If the college collected $310 in interest the first year, how much was loaned to each student?