I want a formula that says

if cell A1=cell A10 or B10 show value of 10