Write an algorithm for the create list r of the elements of the common lists p and q.
Example: p = 2,4,2,1,7,2,3,3 q = 7,2,2,3,3
r = 2,2,7,3,3
p