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 ways that he received equal half yearly interest from both. He should deposit the savings in banks A and B in the ratio.