Answer:
2831
Explanation:
You want the index of the pixel at (x, y) = (15, 22) in a 128×128 array, if the pixel at (0, 0) has index 0, and the pixel at (0, 1) has index 128.
Index
The index increase by 128 for each additional row (y-value), so the index of pixel (x, y) is ...
i = x +128y
The index for pixel (15, 22) is ...
i = 15 +128·22 = 15 +2816
i = 2831 . . . . . index of pixel (15, 22)