force applied on block B BY SPRING = ma = 6*1.5 = 9 N
SINCE IT IS ideal spring , magnitude force applied on both ends is same
Therefore ,
ACCLN OF body A = F/m = 9/4 = 2.25 ms-2
Moreover the direction will be opp. since the sprinfg will try to come back to its original position and so hence it will pull both the objects i.e., the objects will move in the opp. direction
Akash Anand Excellent Job ..keep it up