There were 36 people in a school play. There were three times as many students in the play as teachers. How many students were in the play? How many teachers?