We have equilibrium so we know that the sum of the torques is zero.
Choose wall-board interface so that torques of wall and x-component of tension are both zero.