To find out how many students have a pet, we can calculate 40% of the total number of students, which is 25.
First, convert the percentage to a decimal: 40% = 0.40
Next, multiply the total number of students by the decimal: \[ 0.40 \times 25 = 10 \]
Therefore, 10 students have a pet.