qusetion related to mechanics

three force p,q,r acts along sides bc,ca,ab of triangle abc.prove that if pcoseca+qcosecb+cosecc=0 then line of action passes through centroid of triangle abc