def mysterious(picture):
  for p in getPixels(picture): # loop for each pixel in the picture
    r = getRed(p) # get red value from pixel
    g = getGreen(p) # get green value from pixel
    b = getBlue(p) # get blue value from pixel
    avgRB = (r+g) / 2 # create the avergae for the red and blue values
    newColor = makeColor(avgRB, 255-g, avgRB) # create the new RGB values for each pixels
    setColor(p, newColor) # set the new RGB values fro each pixel
