What value of x makes the relation {(1,5),(x,8),(-7,9)} a function?