The problem is using x and y in an confusing way. You may want to ask your instructor for a correction.
ans