How to calculate average in visual basic code ? (matrix)

Hello! I need help
I need to calculate average of the elements of the matrix in vb.net

5  2  1  2
5  5  2 -2
1  5 -1  1
1 -1 -5 -2