The answer is <em>E: When she told him, "Those socks are interesting," she meant the socks looked ridiculous.</em>
The option E is correctly punctuated because the writer started the sentence with a introdutory information "When she told him" and <em>placed a </em><em>comma</em><em> before</em> writing the exact words someone spoke, which are between <em>quotation</em><em>marks</em>: "those socks are interesting," and <em>another comma</em> before the explanation about what she meant.