In Drupal Commerce, how can I decrease stock of product B when buying product A with rules?
Are you using the Entity Reference module?  You will somehow need to set up the relationships between A + B + C in Drupal, and Entity Reference is one Rules-module compatible way to do this.

Another more flexible but more complicated way would be to use the Relation module.