Maths Trick- How do they predict your number?

The Cook Island girls were showing the Year 7 students a maths trick and the students had to discuss how do the girls predict their chosen number? There is a a strategy but can you explain how the girls predict the number.