So the Israelis served king Eglon of Moab for eighteen years.