foo(p, 0, p). foo(a, b, c) :- b > 0, d is c b, b1 is b - 1, foo(a, b1, d). for the prolog rules above, give the outputs of the following three (3) goals.