Consider the following rules available in a knowledge base.
R1: IF a person has Kshs 100,000 to invest and she has a college degree THEN she should invest in shares.
R2: IF a person?s annual income is at least Kshs 400,000 and she has a college degree THEN she should invest in active shares
R3: IF a person is younger than 30 years and she is investing in securities THEN she should invest in active shares.
R4: IF a person is younger than 30 and older than 22 THEN she has a college degree
R5: IF a person wants to invest in active shares THEN the shares should be Safaricom Shares.
An investor has Kshs 100,000 and is 25 years old.
Use both Forward Chaining and Backward Chaining to advice the investor on whether or not she should invest in Safaricom shares.