Rami sold concessions during a concert. He sold bottled water for $3.50 each and bags of trail mix for $4 each. By the end of the evening, Rami sold 400 items for a total of $1,475. How many bottles of water and how many bags of trail mix did Rami sell?