in reply to Creating data structure from multiple pairs of information
Smells like homework. Or possibly that's just wet dog fur. Show what code you've tried so far and you're more likely to get something useful.