Example 14 : The pie chart gives the marks scored in an examination by a student in different subjects. If the total marks obtained were 540