Those two equations are equivalent. Take the Friedewald equation and add HDL + TG/5 to both sides. It is a good approximation and the condition for validity offered is the usual one. The Friedewald form is more useful since the usual measured analytes are TC, HDL-C and TG.