Let's create the simplest function that converts a 24-bit color to 8-bit grayscale.
Write the code for the function
colorValueToGrayscale(red: Int, green: Int, blue: Int): Int
which takes as parameters a pixel's 3 color values (red, green, and blue) and returns a grayscale value, which is the mean value of the input parameters (use integer operations).