If Bob produces 36 or fewer items in a week, he is paid X dollars per item. If Bob produces more than 36 items in a week, he is paid X dollars per item for the first 36 items and 3/2 times that amount for each additional item. How many items did Bob produce last week?