The answer is (i.e. the answer with the misplaced adjective phrase) . . .
A. Mr. Anderson made a table for his wife with three legs.
This sentence makes it sound as if Mr. Anderson's wife has three legs, when in fact it is the table that has three legs.
Correctly written, it should look like this . . .
"Mr. Anderson made a table with three legs for his wife."