At a movie theater, a bag of popcorn cost $6 and a bag of candy costs $4. If the theater sells 350 total snacks for $1700 how many bags of popcorn and candy were sold?