Word Problems K12Find the logic:

12345678 → 4
  234567   → 2
   3456      → 2
     45        → X

Find X.