A student is attempting to simplify the expression below. Sample mathematical work is shown. Which statement best applies to the sample mathematical work?

Given xy+yx+x-3(x+y), I first apply the distributive property, which yields the expression xy + yx + x – 3x – 3y. I can then collect like terms: since x – 3x = –2x, I have the expression xy + yx – 2x – 3y as my final answer.
A.
The student failed to properly apply the distributive property.
B.
The student collected two or more terms that were not like terms.
C.
The student failed to collect all like terms.
D.
The mathematical work shown above is correct.