Captain America is packing equal numbers of apple slices and grapes for snacks. Captain America bags the apples slices in groups of 18 and the grapes in groups of 9. What is the smallest number of grapes he can pack?