The matching principle in accounting requires the matching of