Answer:
The waiter told Janis that the cake has fewer carbs than the pie, and that the pie has fewer carbs than the pudding. Janis can associate both messages and infer that the cake has fewer carbohydrates than the pudding without the waiter explicitly telling her that.
A (cake) < B (pie)
B < C (pudding)
therefore,
A < C