Question: what is the relationship between two compounds having the same molecular formula?
Answer: Compounds that have the same molecular formula but different chemical structures are called isomers. Remember isomerism is a property between a pair (or more) of molecules, i.e. a molecule is an isomer of another molecule.