NAIROBI, Kenya (AP) — Heavy rains and flash flooding have killed at least 40 people and displaced tens of thousands in Kenya and Somalia, aid agencies reported Monday. In Somalia, the government declared an emergency after the extreme weather killed at least 25 people and destroyed homes, roads and bridges. The heavy rains follow four consecutive years of drought that pushed Somalia to the brink of famine. In neighboring Kenya, the Kenya Red Cross said the death toll had risen to 15 since the heavy rains began Friday, with the port city of Mombasa and the northeastern counties of Mandera and Wajir the worst affected. As of Sunday, flash floods had destroyed 241 acres of farmland and killed 1,067 livestock, the Kenya Red Cross reported.