On her to her grandmothers house, Jackie traveled three times as many miles by train as by bus. She traveled four times as many miles by bus as by foot. If Jackie traveled 34 miles in all, how many miles did she travel by train?