Problem involving graphs of two thermodynamic cycles