In non-inertial frame of wedge
Using pseudo force,
Free body diagram is given as

Normal reaction is balanced by mgcos(θ)
Where m is mass of the body,
g is the acceleration due to gravity
a is the acceleration produced by external force..
macosθ=mgsinθ
a=cos(θ)gsin(θ)
a=gtanθ
