In Kerri's class, 1 out of every 2 students has a pet. If there are 30 students in Kerri's class, how many students have a pet?