def get_points(rbs, wrs, qbs, tes, roster_count):
    """
    Gets the number of points a set of players makes up given the roster counts
    """
    flex = rbs[roster_count['rb']:] + \
           wrs[roster_count['wr']:] + \
           tes[roster_count['te']:]
    flex.sort(reverse=True)
    return sum(rbs[:roster_count['rb']]) + \
           sum(wrs[:roster_count['wr']]) + \
           sum(qbs[:roster_count['qb']]) + \
           sum(tes[:roster_count['te']]) + \
           sum(flex[:roster_count['flex']])