Maximizing profits

Help with understanding what output determined in each market structure in terms of maximizing profits? Also what role does each market structure play in the economy? of competitive markets, monopolies, and oligopolies.

¦