Joe started his math homework. He finished $23$ problems by himself. He finished $13$ more problems with help from Sal. There are $9$ math problems left. How many math problems did Joe have when he started?