Text this: Mathematics of merchandising