Just need some help setting this problem up...

A total of &5000 is invested in two accounts. One pays 5% annual interest and the other 7%. If the interest at the end of the first year is $325, how much was invested in each account?

Thanks so much!

£20000000000000000000000009999999999999999911111111111111111111

To solve this problem, let's assume that the amount invested at a 5% interest rate is x dollars, and the amount invested at a 7% interest rate is (5000 - x) dollars.

Now, we can calculate the interest earned on each investment. The interest earned on the account with a 5% interest rate is given by 0.05x (since 5% is equivalent to a decimal of 0.05). Similarly, the interest earned on the account with a 7% interest rate is 0.07(5000 - x) (since 7% is equivalent to a decimal of 0.07).

According to the problem, the total interest earned after one year is $325. So, we can set up the equation:

0.05x + 0.07(5000 - x) = 325

Now, we can solve this equation to find the value of x, which represents the amount invested at a 5% interest rate.

Let's simplify the equation step by step:

0.05x + 0.07(5000 - x) = 325
0.05x + 350 - 0.07x = 325
-0.02x + 350 = 325
-0.02x = 325 - 350
-0.02x = -25
x = (-25) / (-0.02)
x = 1250

Therefore, $1250 was invested at a 5% interest rate, and the remaining amount ($5000 - $1250 = $3750) was invested at a 7% interest rate.