x and y started a business with capitals rs . 20000 and rs . 25000 . after few months z joined them with a capital of rs . 30000 . if the share of z in the annual profit of rs . 50000 is rs . 14000 , then after how many months from the beginning did z join ?