Exercise 5.4.11 of Hartshorne book "Algebraic geometry" gives a definition of the relationship between Weyl groups, as follows: Given any diagram consisting of points and line segments joining some of them, we define an abstract group, given by generators and relations, as follows: each point represents a generator $x_i$. The relations are $x_i^2=1$ for each $i$, $(x_ix_j)^2=1$ if $i$ and $j$ are not joined by a line segment, and $(x_ix_j)^3=1$ if $i$ and $j$ are joined by a line segment.
The Weyl group $E_6=\langle x_1,x_2,x_3,x_4,x_5,y\rangle$ is defined using the following diagram: $x_i$ and $x_{i+1}$ are joined by a line segment $(1\leq i\leq 4)$, and there is an additional node $y$ which is only joined by a line segment to $x_3$.
The last question of this exercise is to calculate the order of $E_6$ and finally prove that it is isomorphic to the automorphism group of 27 lines on a cubic surface (the mapping has been constructed in the second question). I can prove isomorphism, but Hartshorne seems to mean to use elementary group theory to calculate the number of elements(which means relying only on the above definition). I consulted some literature on Lie algebra, and the methods they used are not elementary. And I know the number of elements of $E_6$ is $51840$.
I discussed this problem with my classmates and some people who are willing to help me in mathematics. One person said that this is a word processing of the Coxeter group, and no papers in this field have been searched. So how to calculate and whether my understanding is wrong. Does Hartshorne mean this?

