You can put this solution on YOUR website! Let
At 3% amount invested = x
At 5% amount invested = 1200-x
3%*x+(1200-x)*5% = 54
(3/100)*x+(1200-x)*(5/100)=54
(3x/100)+(1200*5)/100-(5x/100)=54
(3x/100)+(6000)/100-(5x/100)=54
Multiply by 100 both sides of the equation
3x+6000-5x=5400
-2x=5400-6000
-2x=-600
-2x/-2=-600/-2
x=300
At 3% amount invested = x = $300
At 5% amount invested = 1200-x=1200-300=$900