The relationship between the mass of the two samples is that the mass of X is smaller compared to the mass of Y.
The specific heat capacity is given as:
C =
We can see that the higher the specific heat capacity the lesser the mass or simply put, the specific heat capacity of a body is inversely related to its mass.
If the amount of heat is constant i.e the same and the specific heat capacity of X is twice that of Y, then substance X has a smaller mass