For how many values of n from 1 to 50 does 8n end in the digit 2?
Unit digits of 8^n: 8, 4, 2, 6 (cycle of 4); 2 is place 3
So n = 3, 7, 11 … (n leaves remainder 3 on division by 4)
From 1 to 50: 12 such n
Trap: 5 assumes each digit is equally likely
Pattern: cyclicity counting
Answer: 12