The whole reason a plant makes flowers is to produce seeds.
(a plant; makes; flowers) (The whole reason a plant makes flowers; is; to produce seeds)
a plant The whole reason a plant makes flowers
makes is
flowers
to produce seeds