This is probably the most difficult problem in elementary Geometry. I stopped counting after about 20 steps. The trick is to follow a very carefully constructed diagram which looks simple enough until you start using it.
Givens
Triangle ABC with 2 equal sides AB and AC.
BC is the third side and is not equal to either of the other 2.
The 3 lbs of candy is irrelevant, so we can discard that. All you need to do is divide 147 by 26, which is 5.65 pieces of candy. Each student will get 5 pieces, with a few left over.