Hint for Tennis Balls ...
The required number of weighings might be much smaller than you think ...?