Usage is the following 3 steps 1. input price 2. input the number of people of each group 3. input the amount of pay of each group