Write a function that receives three parameters, a list and two integer parameters (nums,x,y). The function will return the sum of the two values stored in the list at the positions indexed by the parameters.
Write a function called unify that receives one list parameter (nums). It will change all the items in the list to the value at the last index (the last position). It will then return the modified list.