Let us assume that the person will invest Rs. x in savings account
Amount invested in the fixed deposit = Rs. (30,000−x)
Given the rate of interest in savings and fixed deposits are 5% and 7% p.a. respectively.
Now, total interest got by the person in annum is x×5100+(30,000−x)×7100.
i) According to the problem,
x×5100+(30,000−x)×7100=1800
⇒x×5100+2,10,000100−x×7100=1800
⇒x×5100−x×7100=1800−2100
⇒−2x100=−300
x=15,000.
For the first case, he has to invest Rs. 15,000 in each of the accounts.
ii) For the second case
x×5100+(30,000−x)×7100=2000
⇒x×5100+2,10,000100−x×7100=2000
⇒x×5100−x×7100=2000−2100
⇒−2x100=−100
x=5,000.
In this case, he has to invest Rs. 5,000 in savings and Rs. 25,000 in fixed deposit.