def get_average(pixels):
    """
    Given a list of pixels, finds their average red, blue, and green values.

    Input:
        pixels (List[Pixel]): a list of pixels to be averaged

    Returns:
        rgb (List[int]): a list of average red, green, and blue values of the pixels
                        (returns in order: [red, green, blue])
    """
    n = len(pixels)
    avg_list = []
    red = 0
    green = 0
    blue = 0
    for i in range(n):
        ele = pixels[i]
        red += ele.red
        green += ele.green
        blue += ele.blue
    red_avg = red // n
    green_avg = green // n
    blue_avg = blue // n
    avg_list.append(red_avg)
    avg_list.append(green_avg)
    avg_list.append(blue_avg)
    return avg_list