How to solve simple Linear inequality with Checking?