Firms need to use resources (aka inputs) like land, labor, and capital (your textbook’s names for these might be a little different) to make the products they want to sell - the output. The inputs have opportunity costs. If the final product is worth more than the inputs used to make it, then the firm will earn a profit.