A lifeboat was launched to rescue two people stuck in the mud