I just wrote a sentence like this and I'm wondering I've used the word compose correctly.
In order to find the length of the train, you'll need to measure the individual cars it composes.
Is this correct, or would it be better phrased as "... of which it's composed"? Should I use another word, like comprise?