A high school senior who's been solving Rubik's cubes since 4th grade just used that skill to teach 8th graders math.