Mary has been offered two jobs. Job A has a starting salary of $36,000 and a raise of $1500 every year. Job B has a starting salary of $29,000 and a raise of $2500 every year. In how many years would Mary's salary be the same at both companies. What would that salary be?