hey guys this is the question where im stuck please help !

i) LetA= {a, b, c, d} andB= {1, 2, 3}. Determine whether the relationsfromRAtoBare functions. If so, in each case, give itsrangeand check whether it is&onto:one-to-one

a)= {(Ra, 1), (b, 2), (a, 2), (c, 1), (d,3)}(5 Marks)

b= {()Ra, 1), (b, 1), (c, 1), (d, 1)}(7Marks)