In a class of 38 students, 15 play hockey and twice as many play basketball. Each student in the class plays either hockey or basketball. How many students play both hockey and basketball?