What if we have items equal to the pivot, neither bigger nor smaller?

It’s unlikely you’ll have something like that in the exam. But if you do, just do what the textbook says: consistently read “smaller than or equal to the pivot, but not actually the pivot item itself” for “smaller”, or “bigger than or equal to the pivot, but not actually the pivot item itself” for “bigger”. One or the other. Doesn’t matter which.