Combining enthalpies of formation and combustion in the context of Hess's law

I know that you can use enthalpy of combustion to work out formation, and Formation to work out enthalpy change. But can you use enthalpy of formation and combustion data is the same Hess's cycle to work out enthalpy change?


For example, we are trying to work out the enthalpy change for the reaction


$$\ce{A -> B}.$$


The alternative route is


$$\ce{A -> X -> B}.$$


We have been given *combustion* enthalpy data for $\ce{A -> X}$ and *formation* enthalpy data for $\ce{X -> B}.$


Could you work this out? Or does it always have to be the same type of enthalpy data in the alternative route?


