Students sold 275 tickets for a fundraiser at school. Some tickets are for children and cost $3 while the rest are adult tickets cost $5. If the total value of all tickets sold was $1025, how many tickets were sold?