12 seconds is all that it takes for one Abilene boy to finish a Rubik’s Cube.

Gavin Alexander, 10, attends Wylie Middle School. Naturally, math is his favorite subject. In his spare time, he’s taken up mastering the Rubik’s Cube.

“What made me want to do Rubik’s Cubes was my cousin. He inspired me, pretty much,” Gavin said.

He’s only been working on solving the puzzles for about six months.

“He’s a kid that picks something up and he tries something until he gets it right, until he masters,” Gavin’s father, Josh Alexander, said.

Josh Alexander says that after noticing his son’s potential, he encouraged him to take his skills to the competitive level.

“He said he wanted to compete, so encouraged him to do so, just like myself and anything in life, you got to go after it,” Josh said.

Gavin’s knowledge of math helps him solve the Rubik’s Cube by using an algorithm.

While most struggle with the simple cube, Gavin has mastered a variety of shapes. He says his favorite puzzle is the pyramid.

Gavin will be heading to San Antonio in May to compete against other Rubik’s Cube mathematicians from around the world.