Jeff's teacher has a bag of apples and oranges, where there are 3 times as many oranges as apples. If each student receives 2 apples, there is 1 apple left over. If each student receives 5 oranges, there are 7 oranges left over. How many students and apples are there?