maths logical questions and answers