An animal shelter has enough pens for x small dogs and y large dogs, and can hold up to 36 dogs at a time. It costs the shelter $12 a week to keep a large dog and $7 a week to keep a small dog. The shelter must keep its weekly costs under $350. Which system of inequalities can be used to represent this situation?