calculating addition and average marks of five subjects