A teacher has 30 pens and 45 pencils that he wants to give to his students. If each student were to receive the same number of pens and the same numbers of pencils with none left over, then what is the maximum number of students that this teacher could have?