Step 1 :Let's denote the amount of caffeine in one serving of coffee as C, in one serving of energy drink as E, and in one serving of soda as S.
Step 2 :From the problem, we know that: \(C + E + S = 202\) (The total amount of caffeine in one serving each of coffee, energy drink, and soda)
Step 3 :Also, \(C = 10 + 2S\) (One serving of coffee has 10mg more caffeine than two servings of soda)
Step 4 :And, \(E = C + S - 40\) (One serving of energy drink contains 40mg less caffeine than one serving each of coffee and soda)
Step 5 :We can solve this system of equations to find the values of C, E, and S.
Step 6 :The solution is: \(C = 84\), \(E = 81\), \(S = 37\)
Step 7 :Final Answer: The amount of caffeine in one serving of coffee is \(\boxed{84 \mathrm{mg}}\), in one serving of energy drink is \(\boxed{81 \mathrm{mg}}\), and in one serving of soda is \(\boxed{37 \mathrm{mg}}\)