Misbah, Younis lift Pakistan to 277-7