A final examination requires that a student answer any 4 out of 6 questions. In…