the total marks obtained by a student in mathematics and physics is 50 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 = 50 and c - p = 20 m + c / 2 = [ ( m + p ) + ( c - p ) ] / 2 = ( 50 + 20 ) / 2 = 35 . answer : c"
divide(add(50, 20), const_2)