def _findfirststart(starts, names):
    """
    Find first elements in names that begin with elements of starts

    Example
    -------
    >>> hout = _findfirststart(['TA', 'LE'],
                               ['TIMESTAMP', 'TAU_1_1_1',
                                'H_1_1_1', 'LE_1_1_1',
                                'TA_1_1_1', 'TA_1_2_1', 'LE_PI_1_1_1'])
    >>> print(hout)
    TAU_1_1_1 LE_1_1_1
    """
    hout = []
    for hh in starts:
        for cc in names:
            if cc.startswith(hh):
                hout.append(cc)
                break
    return hout