Bayan problem solution