Jolene invests her savings in two bank accounts, one paying 5 percent and the other paying 9 percent simple interest per year. She puts twice as much in the lower-yielding account because it is less risky. Her annual interest is 4598 dollars. How much did she invest at each rate?