Shaheen Shah Afridi led an inspired attack to bowl out Sri Lanka for 222 but the hosts hit back with two wickets before stumps on the opening day of the first Test on Saturday. The tourists reached 24 for two at the close of play in Galle after losing their openers Imamul Haq and Abdullah Shafique. Azhar Ali, on three, and skipper Babar Azam, on one, were batting at the close of play with Pakistan still trailing by 198 runs. Fast bowler Kasun Rajitha trapped Haq leg before wicket for two and Prabath Jayasuriya took down Shafique for 13 with his left-arm spin on a day dominated by the bowlers. Left-arm fast bowler Afridi stood out with figures of 4-58 but Dinesh Chandimal’s attacking 76 and a late cameo of 36 by Maheesh Theekshana gave the hosts a fighting total on a pitch expected to aid spinners. “That’s the beauty of Test cricket, sometimes tailenders and sometimes lower-order batsmen look like proper batsmen,” Afridi told reporters. “We [had] to get them out under 150-160, but the last few batsmen played well. Chandimal played well.” The hosts were tottering at 133-8 but added 89 runs for the final two wickets, including a 44-run stand by Theekshana and Chandimal, who hit 10 fours and one six. Afridi wrapped up the innings with the wicket of Theekshana in the final session of play. “They bowled really well,” said Chandimal. “What we need to do is to get the positives from this innings and take it to the next innings.” Chandimal, a former captain, said early wickets will decide the course of the match on Sunday’s day two and a lead of about 40 can make the hosts gain more ground. Afridi struck in the third over of the day to send back skipper Dimuth Karunaratne for one, and leg-spinner Yasir Shah soon combined with the quick bowlers to have Sri Lanka in trouble after they elected to bat. Oshada Fernando and Kusal Mendis attempted to rebuild the innings in a 49-run partnership but Yasir, who is making a comeback to the team after a thumb injury that kept him out since August last year, broke through. Yasir got Mendis caught behind for 21 and Fernando soon followed his partner back to the pavilion in the next over when pace bowler Hasan Ali cut short the opener’s stay on 35. Angelo Mathews then fell for a 15-ball duck as Yasir got the former captain caught at mid-on. “He’s a very good bowler,” said Chandimal. “We had a plan for him. We are not going to give him too much respect either.” Afridi struck twice after lunch and fellow quick Naseem Shah and left-arm spinner Mohammad Nawaz took a wicket each. Chandimal smashed 19-year-old Naseem for three straight boundaries to bring up his fifty and offer some cheer to the weekend crowd. Chandimal, who made an unbeaten 206 in Sri Lanka’s series-levelling Test win over Australia earlier this week, finally fell to a good catch by Yasir at the cover with Ali taking his second wicket. But Theekshana played a defiant knock in just his second Test and put on 45 runs for the last wicket with Rajitha, unbeaten on 12.