extract data for both q5 and q6