Max has been offered positions by two car companies. The first company pays a salary of $15,000 plus a commission of $1000 for each car sold. The second company pays a salary of $30,000 plus a commission of $500 for each car sold. How many cars would need to be sold to make the total pay the same?