A total of $780 is divided between 2 savings accounts. One account earns 3% simple interest per year, and the other earns 5% simple interest per year. The total interest earned after 1 year is $31.80. How much of the $780 is in the account that earns 5% interest?