They were extracted with the aid of the 17th Royal Scots, a pair of tanks and a Canadian Motor Machine Gun Battery and withdrew by the evening to the line between the villages of Curlu and Hardencourt 1 miles east of Maricourt .