Reasoning about Goals to Resolve Conflicts