Amar, Bhavan and Chetan started a business with investments of Rs. 8000, Rs. 16000 and Rs. 12000 respectively. After x months, Bhavan and Chetan left the business simultaneously. If at the end of the year, the profit shares of Bhavan, Amar and Chetan are in the descending order and x is an integer, find x.