answered
Venus is hotter than Mercury because of its atmosphere, which applies a greenhouse effect that collects the heat from the sun. Mercury does not have an atmosphere, so it will not retain as much heat, but since it's close to the sun, it's still hot!