I will talk about recent work with Jack Thorne in which we find the average size of the 3-Selmer group of the Jacobian for a family of genus-2 curves by analyzing a graded Lie algebra of type E_8. I will focus on the role representation theory plays in our proofs.