You have not got a clue.
Companies with monopoly power do not allocate resources optimally (for society) because they choose to optimise resources optimally for themselves.
Because they have pricing power, profit maximising behaviour does not allocate resources optimally.