In question given that dissolution is endothermic process, it means energy is absorbed.
So according to Le Chatelier’s principle if we supply energy to the system the dissolution process moves forward. So here by increasing temperature we are supplying heat energy, so the more dissolution should happen. That’s why when we increase the temperature solubility increases in endothermic dissolution.
So think about what happens in exothermic dissolution.
Obviously exactly opposite to endothermic dissolution. Here in this case we have to take the energy out of the system to facilitate the process. So solubility decreases in exothermic dissolution, when the temperature increases.