the total number of full-time equivalent jobs was 167. The number of jobs in the primary sector was 37, all of which were in agriculture.
The context describes a situation where there were 167 full-time equivalent jobs, and out of these, 37 were specifically within the primary sector, which was solely focused on agriculture.