Have you read our free Lecture Notes and watched our free lectures (because the terms are explained there).
If demand is elastic then the demand will change as the selling price changes. If demand is inelastic then the demand will not be affected much by changes in the selling price.
We know about X, Y and Z because the first line of the question says X & Y are elastic and Z is inelastic.