Cheryl has $2000 less invested in a money market account paying 10% than in a bond paying 7%. If she received $820 in interest for a year how much did she have in the two accounts?

let amount invested at 7% be x

solve

.07x + .1(x-2000) = 820