Maxim has been offered positions by two car companies. The first company pays a salary of $14000 plus a commission of $1000 for each car sold. The second pays a salary of $30000 plus a commission of $200 for each car sold. How many cars would need to be sold to make the total pay the same?