The rates of simple interest in two banks A and B are in the ratio 5: 4. A person wants to deposit his total savings in two banks in such a way that he received equal interest per year from both. He should deposit the savings in banks A and B in the ratio