Well d 2nd option is correct - double bond goes 2 least subs carbon.
I cant exactly 'state' d rule but ya i can give u sme tips - 1. When d base used for elimination is a bulky group then Hoffman product is formed 2. When elimination of 'F'(Flourine) atom takes place then Hoffman product is formed as d transition state is more stabilised when double bond is goin 2 b formed on a lesser subd carbon.
Ask me ne more of ur doubts(preferably in ma nudgebook) & ya rate me if u find this useful