To solve this problem it will be necessary to apply the equilibrium conditions. At the same time, it is necessary to make a free body diagram that allows clarifying the origin of the forces with their respective components used to generate the system of equations that allow us to determine the value of the necessary Angle.
As show in free body diagram we have that
= Force due to wall
= Frictional force
N = Normal Force
For equilibrium the moments about point A must be zero, then
And similarly the equilibrium with the force show us that,
From above equation and replacing we have then
Therefore for equilibrium