Let $f$ and $g$ be functions from $\mathbb{R}$ to $\mathbb{R}$. Prove that:
a.) $\sup\{f(x)+g(x):x\in\mathbb{R}\}\leq \sup\{f(x):x\in\mathbb{R}\}+\sup\{g(x):x\in\mathbb{R}\}$
b.) $\sup\{f(x)+g(y):x,y\in\mathbb{R}\} = \sup\{f(x):x\in\mathbb{R}\}+\sup\{g(y):y\in\mathbb{R}\}$
Attempted proof a.) - Since $f(x)\leq \sup\{f(x):x\in\mathbb{R}$ and $g(x)\leq\sup\{g(x):x\in\mathbb{R}\}$ then we have $$f(x) + g(x) \leq \sup\{f(x):x\in\mathbb{R}\} + \sup\{g(x):x\in\mathbb{R}\}$$ Thus, $f(x) + g(x)$ are bounded from above by $\sup\{f(x):x\in\mathbb{R}\} + \sup\{g(x):x\in\mathbb{R}\}$. So, $$\sup\{f(x)+g(x):x\in\mathbb{R}\}\leq \sup\{f(x):x\in\mathbb{R}\}+\sup\{g(x):x\in\mathbb{R}\}$$
I am not exactly sure how to show b.) any suggestions is greatly appreciated.
b) Let $x, y \in \mathbb{R}$
Then $f(x)+g(y) \leq \sup f +\sup g$. Taking the supremum for all $x,y$ we get that: $\sup \{f(x)+g(y)| x,y \in \mathbb{R}\} \leq \sup f +\sup g$.
Besides, is obvious that for $x,y \in \mathbb{R}, f(x)+g(y) \leq \sup \{f(x)+g(y)| x,y \in \mathbb{R}\} $
Taking the supremum in $x$, we get $\sup f +g(y) \leq \sup \{f(x)+g(y)| x,y \in \mathbb{R}\} $.
Then taking the supremum in $y$, we get $\sup f + \sup g \leq \sup \{f(x)+g(y)| x,y \in \mathbb{R}\} $
Finally $\sup \{f(x)+g(y)| x,y \in \mathbb{R}\} = \sup f + \sup g $