Thats an utter mistake.
How can two functions of different variables be divided.
The question must be to divide the p(y) by y-(1/2).
By remainder theorem, if (x - a) divides p(x) = x3– ax2 + 6x – a then remainder of polynomial is p(a).
Therefore
p(1/2)=4+(3/2)-(1/4)+(5/8)
p(1/2)=47/8.
Therefore the remainder is 47/8