Three persons A, B and C divide a certain amount of money such that A's share is Rs. 4 less than half of the total amount, B's share is Rs. 8 more than half of what is left and finally C takes the rest which is Rs. 14. Find the total amount they initially had with them