How do we find percentage composition of a compound, with respect to an element....?
We don't know to what mass or to what compound you refer. So you should revise the question.
And so, were we asked to find elemental composition of methane...we would take the quotients...
And clearly, in a binary compound