Web ravenclaw and slytherin both have two primary answers.
Pottermore sorting hat quiz 28 questions
The sorting hat pottermore quiz playbuzz
Harry potter sorting hat quiz all questions algorithm