Above reaction is known as Hoffmann’s

reaction prefer less substituted alkene, an example of kinetically control product. If we study stereochemistry a preference of trans-periplanar (Anti)-elimination of the H and the amine. It shows, E2 mechanism with anti stereochemistry.