listb lista newlist figure the iterative steps for merging two sorted lists into new sorted list and are index variables indicating the next value to be merged from the respective list of selecting the next largest value to be added to the new merged list during the iteration of the loopthe value at lista[ais compared to the value listb[bthe largest of these two values is added or appended to the new list if the two values are equalthe value from listb is chosen as values are copied from the two original lists to the new merged listone of the two index variables or is incremented to indicate the next largest value in the corresponding list this process is repeated until all of the values have been copied from one of the two listswhich occurs when equals the length of lista or equals the length of listb note that we could have created and initialized the new list with sufficient number of elements to store all of the items from both lista and listb while that works for this specific problemwe want to create more general solution that