def getPagesLinkingToPage(page, corpus):
    """
    Returns a list of all the pages that link to a given page
    """
    linkingPages = []

    for memberPage in corpus:
        if(page in corpus[memberPage]):
            linkingPages.append(memberPage)

    return linkingPages