The duo’s 99-run partnership for the sixth wicket helps the host reach 340 for seven; the home team leads by 178 at the end of day two