{(m^2)-(n^2),2m n,(m^2)+(n^2)}/.{m->6,n->5}

40+78+45+82+93+95
16+92+09+99+02+62
30+74+37+88+64+97
94+51+41+33+93+26
05+97+83+23+53+41

<<Histograms`

Histogram[{37,18,28,39,40,40,33,39,36,40,31,38,23,12,26,40,31,32,28,24,26,36,27,5,36,34,29,40,30,31 ,30,40,40,28,19,21,39,32,30,32},HistogramCategories->{5,10,15,20,25,30,35,40}, HistogramRange->{5,40}]

390-338

1+2+3+4+5