def group_names(groups, group_id):
    """
    Return English and Arabic names of group (either Office or Subconstituency) with matching id,
    or None if not found.
    """
    for g in groups:
        if g['code'] == group_id:
            return g['english_name'], g['arabic_name']