# Then they called out to Yahweh in their trouble
"Then they prayed to Yahweh to help them in their trouble"
# their distress
"their difficulties" or "their afflictions"