1) Initialize the array ArrAnswers (5 elements):
[0,0,0,0,0]
2) Initialize the array ArrEmailBodies (32 elements):
["Email body 0","Email body 1",..."Email body 31"]
3)
If Q1=Yes then set ArrAnswers[0]=1
If Q2=Yes then set ArrAnswers[1]=1
If Q3=Yes then set ArrAnswers[2]=1
If Q4=Yes then set ArrAnswers[3]=1
If Q5=Yes then set ArrAnswers[4]=1
4) Initialize an integer variable intIndex with the following expression:
add(mul(variables('ArrAnswers')[0],16),add(mul(variables('ArrAnswers')[1],8),add(mul(variables('ArrAnswers')[2],4),add(mul(variables('ArrAnswers')[3],2),variables('ArrAnswers')[4]))))

5) now to get the proper email body use the following:
ArrEmailBodies[variables('intIndex')]
