Tom is cooking in the kitchen. He is making peppers, onions, and tomatoes. There are 10 tomatoes, 8 mushrooms, and 4 peppers. Tomatoes are 40 calories, mushrooms are 50 calories, and peppers are 30 calories.
Part A: How many vegetables is Tom cooking in all?
Part B: If Tom uses all of the vegetables to make a meal, how many calories would it be?