Josh but a total of 30 cans of cola and root beer. There were twice as many cans of cola is cans of root beer. How many cans of color did he buy?