Larry Mitchell invested part of his $25,000 advance at 2% annual simple interest and the rest at 3% annual simple interest. If his total yearly interest from both accounts was $510, find the amount invested at each rate.