The intermoecular forces refer to forces that exist between molecules of a substance. They are the secondary bond forces that hold particles of a substance together in a particular state of matter.
The shorter the distance between molecules, the greater the magnitude of intermolecular force between the molecules.
The molecules of Y are at the shortest distance from each other hence they have the highest magnitude of intermolecular forces. Followed by X and lastly Z with the greatest distance between the largest intermolecular distance.