Hi how to combine these 2 formulas

IF A1>B2=A1-B1 IF B1>A1=B1-A1

thanks you