an investment firm invested in two companies last year. they invested 11000 in company a and made a profit of 24% . they invested 14000 in company b and made a profit of 15% .