The Economics of Apprenticeship