A $24,500 investment was made by Adam into two different pharmaceutical funds. Part of it was invested in a fund that earned 7% per annum and the remainder in a fund that earned 3% per annum. The total interest received after one year was $1,375. Find the amount invested into each of the two funds.