On most (all?) dual sim Android phones, the app gets cloned to the second sim. So number A gets one copy of Whatsapp, number B a second instance of Whatsapp. You have two icons on the screen and tap the appropriate one for the number you want to use.