X and Y enter into a partnership, investing Rs. 16,000 and Rs. 12,000, respectively. After 3 months, X withdraws Rs. 5,000. After another 3 months, Z joins the business with a capital of Rs. 21,000. If the profit after one year is Rs. 26,400, what is Z's share of the profit?