<?php
$total_students = 25;
if($total_students % 5 == 0) {
echo 'Each group of five students has been given an assignment.';
} else {
echo 'Sorry, it is impossible to create groups of five students right now. Please get more students.';
}
?>

<?php
$total_students = 28;
if($total_students % 5 == 0) {
echo 'Each group of five students has been given an assignment.';
} else {
$removed_students = $total_students % 5;
$total_students -= $removed_students;
echo 'We have created groups of five students by removing the last '.$removed_students.' students from the list.';
}
?>