def retrieve_event_id(name, events):
    """
    Gets the event id by searching the events for an event matching the name passed in.
    Returns the event id and the event name with the correct capitalization.
    """
    event_id = ''
    event_name = ''
    for event in events:
        if event['summary'].lower() == name.lower():
            event_id = event['id']
            event_name = event['summary']

    return event_id, event_name