Martin was selling tickets for a basketball game in a high school. He sold 1,250 tickets and the total amount collected for the game was $2,750. The student tickets cost $2 each, and adult tickets cost $3 each. How many student and adult tickets were sold?