A Mathematical Model For Optimal Decisions In A Representative Democracy