Three times the total number of adults was 17 less than the number of children who visited the petting zoo. How do you write an equation to model this relationship?