Bernadinho and Pedro are students and face the classic tasks of fulfilling school obligations, takin…