Sort:  

Let X be coke, Y - burger, Z - Fries

  1. x + x + x = 30 => 3x=30 => x=30/3 => x=10
  2. 10 + y + y = 20 =>10 + 2y = 20 => 2y=20-10 => 2y=10 =>y=10/2 => y=5
  3. 5 + 2z = 9 => 2z=9-5 => 2z=4 =>z=4/2 => z=2
  4. 10+5+2=17
    The answer is 17.

Thats the correct answer @lazynugu