a = part of Melissa's earnings
b = other part of Melissa's earnings
a+b = 12000
.03a + .04b = 440
Multiply the second equation by 25. You get
a+b = 12000
.75a + b = 11000
Subtract the second equation from the first one:
.25a = 1000
a = 4000
b = 8000