Remarks on brachistochrone–tautochrone problems