a) \(=\dfrac{x+15}{\left(x-3\right)\left(x+3\right)}+\dfrac{2}{x+3}=\dfrac{x+15+2\left(x-3\right)}{\left(x-3\right)\left(x+3\right)}=\dfrac{3x-9}{\left(x-3\right)\left(x+3\right)}=\dfrac{3\left(x-3\right)}{\left(x-3\right)\left(x+3\right)}=\dfrac{3}{x+3}\)
b) \(=\dfrac{x+y}{2\left(x-y\right)}-\dfrac{x-y}{2\left(x+y\right)}+\dfrac{y^2+x^2}{\left(x-y\right)\left(x+y\right)}=\dfrac{\left(x+y\right)^2-\left(x-y\right)^2+2\left(x^2+y^2\right)}{2\left(x-y\right)\left(x+y\right)}=\dfrac{2\left(x^2+y^2+2xy\right)}{2\left(x-y\right)\left(x+y\right)}=\dfrac{\left(x+y\right)^2}{\left(x-y\right)\left(x+y\right)}=\dfrac{x+y}{x-y}\)