The road to riches is paved with a good grasp of math.