Text this: Maximum and Minimum Energy Trees with Two and Three Branched Vertices