A teacher bought packages of 6 pens in each package. Another teacher bought packages of 8 pens in each package. If the teachers ended up buying the same number of pens, what is the least number of pens they could have?