Finding a feasible solution for a class of distributed problems with a single sum constraint using agents