Frame a formula for finding the number of students ′n′ that may be seated in a class room in which there are S single seats and D double seats.