What effect did the invention of irrigation systems have on both ancient Egypt and Mesopotamia?

A.

It reduced farmers’ dependence on aid from the pharaoh.
B.

It brought fresh-water supplies to desert areas.
C.

It helped to cause flooding in the areas around the rivers.
D.

It increased trade across the Mediterranean Sea.

pls answer because I have a test about this question..