
Grayscale Images: Grayscale images consist of shades of gray, ranging from black to white, with no color information. Each pixel in a grayscale image contains only one value representing its intensity level.
RGB Images:
RGB images consist of three color channels—Red, Green, and Blue. Each pixel contains three values representing the intensity of these primary colors. RGB images can display a wide range of colors by mixing these three color intensities.
The following data shows the number of family members living in different bungalows of a locality: 
 
| Number of Members | 0−2 | 2−4 | 4−6 | 6−8 | 8−10 | Total | 
|---|---|---|---|---|---|---|
| Number of Bungalows | 10 | p | 60 | q | 5 | 120 | 
If the median number of members is found to be 5, find the values of p and q.