Local storage y listview click Item

Hello, maybe you can help me if it is not too much trouble in a code that I am trying but it does not work out, I managed to save the data in local storage, but of course I want the data to be displayed in a text input through a list view and that when clicking on the list view it shows me the data of each of the text entries.

I am doing this but in this way the name is repeated in the last name text input and I want it to show the LAST NAME in the last name text input and the First Name in the NAME text input.
HERE IS THE CODE:

You might get more replies if you post in English.