title: Using Drools for logic gates
body: <p>We have been given two configurations (of Logic gates). Suppose</p>
  
  <p>LHS = A.(B + C) and</p>
  
  <p>RHS = B.A + C.A</p>
  
  <p>What we have to find out are the rules applied to LHS so that we get RHS finally. We have to print the intermediate rules.
  For example.. output in this case will be</p>
  
  <p>A.(B + C) = A.B + A.C </p>
  
  <p>A.B = B.A</p>
  
  <p>A.C = C.A</p>
  
  <p>The operations which would be applied on LHS to get RHS would be the answer.
  We are working on Drools. We have to make a drl file for it. But I am totally confused about the rules. We have to make the rules containing the operations.</p>
  
  <p>I have not been able to figure out how the thing will work through drools.</p>
  
  <p>Please provide some hints.</p>