Answer:
Part a)

Part b)

Step-by-step explanation:
Part a)
Applied force on the block system is given as

total mass of the system is given as


now acceleration of the system is given as



Part b)
When 3M mass block just start sliding then the force of friction on it will reach to its maximum value



now the acceleration of the block is given as



now we have


