In the arrangement shown in figure, mA=1 kg,mB=4 kg. String is light and inextensible while pulley is smooth. Coefficient of friction between block A and the table is μ=0.2. Find the speed of both the blocks when block B has descended by a height h=1 m. ( Take g=10 m/s2).