A class has 18 students. The teacher asks how many students in the class have pets and finds 5/9 of the students have pets. How many students have pets?