The free body diagram of the block is
The acceleration of the block is in the right direction so the block will experience a pseudoforce in the left direction as shown in the free body diagram.
The block will start sliding on the wedge then friction force will act down the wedge.
The condition when block will slide on the wedge is macosθ≥mgsinθ+μN
For minimum acceleration macosθ=mgsinθ+μN.................(1)
Now resolving the components of different forces acting on the block N=mgcosθ+masinθ...............(2)macosθ=mgsinθ+μN..............(3)
On solving the equations (2) and (3) ⇒a(cosθ−μsinθ)=g(sinθ+μcosθ)⇒a=(cosθ−μsinθ)g(sinθ+μcosθ)