metodo solve de class Exam