There are 17 boys and 14 girls in a choir. One boy and one girl will be selected to sing a duet. Work out the total number of ways of choosing a boy and a girl.