Logic for selecting items according to price restriction