Water flows out of a pipe at a rate of 40\(\pi cm^2\) per seconds into…