The rule of the simple interest is
P is the amount of investment
R is the interest rate in decimal
T is the time
Let her invested x dollars in the 1st account and y dollars in the second amount
Since her total investment is 30,000 dollars, then
Since the 1st account gives 5%, then
R = 5/100 = 0.05
Since the time is 1 year, then
T = 1
The interest of 1st account is
Since the 2nd account gives 7%, then
R = 7/100 = 0.07
The interest of 2nd account is
Since she took a total interest of 1780 dollars, then
Now, we have a system of equations to solve it to find x and y
Multiply equation (1) by -0.07 to eliminate y
Add (2) and (3)
Divide both sides by -0.02 to find x
Substitute x in (1) by 16 000 to find y
Subtract 16000 from both sides
Then she invested 16 000 dollars in the 1st account and 14 000 dollars in the 2nd account