Select the sentence which is correctly punctuated.

A) He has a 150-pack-year smoking history.
B) He has a 150 pack year smoking history.

I answered B

No, sorry.

It SHOULD be this:
... a 150-pack-per-year ...