The correct answer is A. 1 : 4.

The ratio in which the partners share the profits of the firm is determined by the agreement between the partners. In the absence of any agreement, the partners share the profits in the ratio of their capital contributions. In this case, X contributes Rs. 5,000 in assets and Y contributes Rs. 20,000 in cash. Therefore, the ratio in which they should share the profits is 1 : 4.

Option B is incorrect because it is the ratio of the capital contributions of X and Y. However, the ratio in which the partners share the profits is not necessarily the same as the ratio of their capital contributions.

Option C is incorrect because it is the ratio of the time that X and Y devote to the partnership. However, the ratio in which the partners share the profits is not necessarily the same as the ratio of the time that they devote to the partnership.

Option D is incorrect because it is the equal sharing ratio. However, the ratio in which the partners share the profits is not necessarily equal.