The following table gives the distribution of 100 families according to daily expenditure:
Expenditure (in Rs): 0-10, 10-20, 20-30, 30-40, 40-50
Number of families: 14, x, 27, y, 15
If the mode of the distribution is 24, find the missing frequencies x and y.