the total marks obtained by a student in mathematics and physics is 40 and his score in chemistry is 20 marks more than that in physics . find the average marks scored in mathamatics and chemistry together .
"let the marks obtained by the student in mathematics , physics and chemistry be m , p and c respectively . given , m + c = 40 and c - p = 20 m + c / 2 = [ ( m + p ) + ( c - p ) ] / 2 = ( 40 + 20 ) / 2 = 30 . answer : e"
divide(add(40, 20), const_2)