Complex sentence: Tree nut allergy is distinct from peanut allergy, as peanuts are considered legumes, whereas a tree nut is a hard-shelled fruit of certain plants.
Split into simpler sentences: Tree nut allergy is distinct from peanut allergy. Peanuts are considered legumes whereas a tree nut is a hard shelled fruit of certain plants.