A mediator helps by facilitating discussions between the parties, ensuring both sides are heard, and guiding them to mutually agreeable terms. They draft the agreement based on these discussions and ensure clarity and fairness.