This entire expression gives the total number of apples required to make 2 pies and 4 cakes.
x is the number of apples for a cake. 3x would be the number of apples it takes to make a pie. 2(3x) would be the apples for 2 pies and 4(x) would be the number of apples for 4 cakes.