At Wren Station High School, there are x physics teachers and y chemistry teachers. The total number of chemistry and physics teachers together is 7. The number of chemistry teachers is 1 fewer than three times the number of physics teachers.