Correct choice is (a) By thermal decomposition
To explain I would say: In case of less reactive metals like silver and mercury, ΔfG° becomes positive at higher temperatures. This suggests that both silver oxide (Ag2O) and mercury oxide (HgO) are unstable and hence decompose at high temperatures to liberate the corresponding metal.