By weighing, the teacher means comparing. As if taking to watermelons and putting each on a scale, and picking which one you want.