linear combination for choosing dog