The guideline to follow to ensure fairness in grading group work is:
Evaluate individual contributions as well as the group outcome.
This approach allows for a more equitable assessment by acknowledging both the overall success of the group project and the specific contributions made by each individual.