Let c = CD
Let m = money market account
c + m = 20,000
.06c + .045m = 1120
Multiply first equation by .06. You get:
.06c + .06m = 1200
.06c + .045m = 1120
Subtract these two equations. You get:
.015m = 80
m = 80/.015 = 5,333.33
c = 14,666.67