compute au and av and compare them with b