Johnny has two bank accounts. One pays 7% interest and the other pays 10% interest. A total of $25,000 invested in the two accounts. Last year he earned $2,200 in interest on two accounts. How much money does he have in each account? define variables and write out a system of equation!