A man invests his savings in two accounts, one paying 3% and the other paying 5% simple interest per year. He puts twice as much in the lower-yielding account because it is less risky. His annual interest is $1496. How much did he invest at each rate