Question: public goods are both rival and nonexclusive?
Answer: A public good is both non-excludable and non-rivalrous. Pure public goods are perfectly non-rival in consumption and non-excludable. Impure public goods satisfy those conditions to some extent, but not perfectly. Public goods provide an example of market failure.