okay so I cant seem to figure this out at all and I'm quite frustrated I tried other help websites like this and got people who yelled at me for learning code.

I'm writing a program where it already is populating a listbox with a while loop for 30 instances. when i select an item in the listbox i need to be able to get data from that instance is there a way to do that? I'm trying to use the listbox.datasource.gettype or ToString or something but I'm at a loss here say the item from the calculation done in the loop was tipamount what would i type to get that data and put it into another variable for another calculation?