If the blocks A and B are moving towards each other with accelerations a and b shown in fig. find the net acceleration of block C.