if you can buy 3 bags of candy for 6$ then how many can you buy with 18$

well, $18 is 3 times as much as $6, so you can buy 3 times as much candy, right?