Six months imprisonment was the sentence given to Ah Tom for selling opium, as an alternative to paying a $100 fine.