A block A of mass 5 kg is placed on a table and connected to another block B of mass 3 kg with a light string passing over a frictionless pulley. The coefficient of friction between the table the block A is 0.4. The block B is suddenly dropped and the string breaks after 3 seconds. What is the total distance covered by block A?