def get_movies_ranking(top_rated, top_grossing):
    """
    Gets all rankings of movies based on a combined rating/grossing score
    :param top_rated: dictionary of top rated movies
    :param top_grossing: dictionary of top grossing movies
    :return: sorted list of movies ranked on rating and grossing score
    """
    movies = [(x, (top_rated[x][0], top_grossing[x][0])) for x in top_grossing if x in top_rated]
    movie_score = []
    for movie in movies:
        movie_score.append((movie[0], 500 - float(movie[1][0]) - float(movie[1][1])))
    ranking = sorted(movie_score, key=lambda x: x[1], reverse=True)
    return ranking