"She thought of her last day in middle school, seven years ago, when Sarah had given her an iPod." - Note: 7 years ago
"She had felt ecstatic that day when she realized she would be able to listen to her favorite songs and fend off comments from her cousins about how little she knew about music. " - Note: "that day", meant the day 7 years ago.
hope this helps