The attendance at a baseball game was 400 people.Student tickets cost $2 and adult tickets cost $3.total ticket sales were $1050.How many tickets of each type were sold?