Math problems

To calculate the average, you can just do
untitled script pic (11)


The issue you were having has to do with this

but to fix it, just set "list 2" to

untitled script pic (6)