Let say for example I have list A and HashMap B which contains lists with index references to List A. How can I can get the values from List A based on a certain key-value p