Solution
In[33]:=
Out[33]=
In[34]:=
Out[34]=
Another way to do the same thing is with the functions First and Last
In[35]:=
Out[35]=
In[36]:=
Out[36]=
In[37]:=