Is this relation a function (12, 20) (16, 5) (12, 1)

No, this relation is not a function because the input value 12 maps to two different output values (20 and 1). In order for a relation to be a function, each input value must map to exactly one output value.