A theater wants to take in 2000 dollars for a certain matinee. Children's tickets cost 5 dollars each and adult tickets cost 10 dollars each. If the theater has a maximum of 350 seats, write a system of equations that can be solved to determine the number of both children and adult tickets the theater can sell.