Budgeting with priorities