(N/A) According to Wien's displacement law,the product of the absolute temperature $T$ and the wavelength $\lambda_m$ corresponding to the maximum spectral emissive power is a constant,given by $\lambda_m T = b$,where $b \approx 2.898 \times 10^{-3} \ m \cdot K$ is Wien's constant.
$1$. For the Sun: The Sun emits radiation with a peak wavelength $\lambda_m \approx 500 \ nm$ $(500 \times 10^{-9} \ m)$. Using the law,$T = b / \lambda_m = (2.898 \times 10^{-3}) / (500 \times 10^{-9}) \approx 5800 \ K$.
$2$. For the Moon: The Moon reflects sunlight but also emits thermal radiation. Its surface temperature varies,but the average surface temperature is approximately $200 \ K$ to $400 \ K$ depending on the day/night cycle,with a mean value often cited around $250 \ K$ to $300 \ K$.