need a function that takes in two tuples and returns a dictionary in which the elements of the first tuple are used as keys, and the corresponding elements of the second
for example, calling tuples_to_dict(('a','b', 'c', 'a'), (1,2,3,4))
will return {'a':1, 'b':2, 'c':3}