Answer:
$15,000 was invested at 7%
$3,000 was invested at 8%
Explanation:
Let
be the amount of money you spend on the 7% account and
be the amount of money you spend on the 8% account. With the information given, you can set up two equations:
![x+y=18000](https://img.qammunity.org/2023/formulas/mathematics/college/k2a0m9fb8cww2dqr24rex4ka0dqpsg8i0w.png)
![0.07x+0.08y=1290](https://img.qammunity.org/2023/formulas/mathematics/college/k4pdr3cut5runvd60ypzwn8dij697c179r.png)
Rearrange the first equation and multiply the second equation to get:
![x=18000-y](https://img.qammunity.org/2023/formulas/mathematics/college/whsq3d9xrld1zd96dhel2iqqqqlm2jbssy.png)
![7x+8y=129000](https://img.qammunity.org/2023/formulas/mathematics/college/z3667sbi3ehh49aubioshbeh4yx01s1fto.png)
Then, substitute
for
in the second equation to get:
![7(18000-y)+8y=129000](https://img.qammunity.org/2023/formulas/mathematics/college/4xab3nt6jsww89txtbbdjqf7n4ntg78oir.png)
Use the distributive property (
) to get:
![126000-7y+8y=129000](https://img.qammunity.org/2023/formulas/mathematics/college/zh8vgmz6m02mf4w0p9pe0p5vohmh0xcbcf.png)
Subtract
from both sides and combine like terms to get:
![y=3000](https://img.qammunity.org/2023/formulas/mathematics/college/4lpc446ghxkr53h5wqi2h47dyapilcos3h.png)
Thus, substitute
for
in the first original equation to get:
![x+3000=18000](https://img.qammunity.org/2023/formulas/mathematics/college/2nughttvp0a0zz495b3wue78nnrfmq4r4a.png)
Finally, subtract
from both sides to reach:
![x=15000](https://img.qammunity.org/2023/formulas/mathematics/college/bbcpzeoiurpvnt7azo9jn5x7a6p11sdgsw.png)
Our answer is $15,000 was invested at 7% and $3,000 was invested at 8%.
Hope this helps :)