The pulleys and strings shown in the figure are smooth and of negligible mass. For the system to remain in equilibrium, the angle θ should be
Free Body Diagram of block m
This is also why tension in both strings will be the same.
∴ from (1) and (2)
2mgcosθ=√2mg
cosα=1√2
⇒θ=45∘