The number of items which are sold by the store keeper is independent variable because it is unaffected by the profit of the store keeper. The profit of the store keeper is dependent variable because it depends on the number of items which are sold by the store keeper.
The number of items which are sold by the store keeper is independent variable and the profit of the store keeper is dependent variable.