how to solve alligation problems