solve a<b & b<a