Two blocks A and B weighing 2 kg and 8 kg respectively are tied with an inextensible string. The coefficient of kinetic and static friction between the blocks and the horizontal surface is 0.25 and 0.3 respectively. If horizontal force F=25 N, then find the acceleration of block A and B.