answer(a, "ba").
answer(b, "aa").
answer(a, "ab").
