To create a complex sentence from the original sentences while maintaining the same meaning, you can combine the ideas into one sentence using a subordinate clause. Here’s one way to do that:
"After noticing that her computer was damaged and would not work properly, Amelia had to return it to the store to get her money back."
This complex sentence encapsulates both ideas: Amelia's realization of the damage and her subsequent action of returning the computer.