Squares and cubes

How many positive two-digit numbers are there whose square and cube both end in the same digit?

Problem



How many positive two-digit numbers are there whose square and cube both end in the same digit?

This problem is taken from the UKMT Mathematical Challenges.