Hello, thank you for taking the time to post your question!
What it’s getting at here is that after you invest the “x” amount of money, you would still have (8000 – x) leftover to invest.
So you can represent the remaining amount as $8,000 – x
I hope that helps you get moving in a better direction on this type of question! Feel free to reach out if you have any additional questions beyond that :)