Fast bowler Shaheen Shah Afridi and allrounder Hussain Talat kept Pakistan alive in the Asia Cup after beating Sri Lanka by five wickets on Tuesday.