Step 1: The thermal decomposition of lithium nitrate (\(LiNO_3\)) and sodium nitrate (\(NaNO_3\)) produces different products.
Step 2: When lithium nitrate decomposes, it forms lithium oxide (\(Li_2O\)), nitrogen dioxide (\(NO_2\)), and oxygen (\(O_2\)), i.e., three products.
Step 3: When sodium nitrate decomposes, it forms sodium nitrite (\(NaNO_2\)) and oxygen (\(O_2\)), i.e., two products.
Thus, the number of products formed by thermal decomposition of lithium nitrate and sodium nitrate respectively is 3 and 2.