Relation between light cone distribution amplitudes and shape function in B mesons