Gravitational torque

I really need help on walking through this problem...didn't really teach it in class...I tried watching a video and you're supposed to sum the forces * some perpendicular distance to the pivot? Yet what if the force is already perpendicular?