You are doing this exactly right! You just have to derive $\forall y \
eg P(x,y)$ from $\
eg \exists y P(x,y)$
Now, I am not sure how your proof system defines the rule for $\forall$ Introduction ... in the system that I use you designate a 'fresh' constant to take the role of the arbitrary object from the domain. So this is what it looks like in my preferred system, called Fitch:
![enter image description here](