How the Brain Learns Math