<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_product_target_mappings_for_targets(self, targets):
 """Gets the product-target associations for the given targets, preserving the input order. :API: public :param targets: The targets to lookup products for. :returns: The ordered (product, target) tuples. """

    product_target_mappings = []
    for target in targets:
      for product in self._products_by_target[target]:
        product_target_mappings.append((product, target))

    return product_target_mappings