I need to write in prolog these first order statements. How are they to be written? red(X) should return false, green(X) should return false, and green(X) or red(X) should return true

I have this code already:
% Assigning Facts
apple(a).
apple(b).
orange(c).
pear(d).
carrot(e).
onion(f).
pepper(g).
% Assigning Rules
red(X) :- apple(X).
green(X) :- apple(X).
fruit(X) :- apple(X).
fruit(X) :- orange(X).
fruit(X) :- pear(X).
vegetable(X) :- carrot(X).
vegetable(X) :- pepper(X).
tasty(X) :- fruit(X).
tasty(X) :- carrot(X).
tasty(X) :- not(onion(X)).
vegetable(X) :- not(tasty(X)).