Explanation:
Escape velocity is the point at which the kinetic energy is equal to the gravitational potential energy.
KE = PE
½ mv² = mgh
½ mv² = m (GM/r²) (r)
½ mv² = GMm/r
½ v² = GM/r
v = √(2GM/r)
The escape velocity is independent of the mass of the spacecraft. So the escape velocity will be the same for both X and Y.