The left-handed Ayub and Salman (82 not out) shared a fifth wicket partnership of 141, rescuing Pakistan from 60 for four.