after how many years will the salaries offered in company a and b be the same

company a starting 24000 yearly 3000

company b starting 30,000 yearly 2400