This is my attempt, but I'm stuck:
$P(x,y|z) = P(y|x,z)P(x)=P(y|x,z)\sum_{z}P(x,z)=P(y|x,z)\sum_{z}P(x|z)P(z)$
I think the steps I took thus far have been correct, although I'm not sure whether they have actually been goal oriented, I mean $\sum_{z}P(x|z)P(z) \neq P(x|z)$ isn't it?
Can anybody please give me a hint?
Actually intuitively this is obvious since it is well known that $$P(x,y)=P(y|x)P(x)$$ which of course will not change if you have additional information. i.e. if we write $$P(x,y|\cdot)=P(x|\cdot)P(y|x, \cdot)$$ Taking $z$ in the place of $"\cdot"$ you have the required equality.
In your attempt the first equation is false, since you write $$P(x,y|z)=P(y|x,z)P(x)$$ which is not true since you should write $P(x|z)$ instead of $P(x)$.