Elijah's Pizza sells cheese pizzas cut into 8 slices each and pepperoni pizzas cut into 4 slices each. If Elijah's Pizza sold the same number of slices of each type of pizza yesterday, what is the smallest number of slices of each type that the restaurant must have sold?