A block A of mass 2kg rests on another block B of mass 8kg which rests on a horizontal floor. The coefficient of friction between A and B is 0.2 while that between B and floor is 0.5. If a horizontal force F of 25 N is applied on the block B, find the force of friction between A and B.