mr. x teaches freshman english, and mrs. x teaches freshman history. they hosted a party at their home for members of their classes and their dates. twenty-three of the students were in mr. x's class, 31 were in mrs. x's class, 9 were in both mr. and mrs. x's classes, and 18 other students were in neither class. how many students were at the party?