Start with the total number of pencils and subtract the short ones.

• Total pencils = 9
• Short pencils = 6
• Longer pencils = 9 − 6 = 3

3 pencils are longer.
Check: 6 + 3 = 9 ✓