After some time passes, the substances will reach the same temperature.
When two substances at different temperatures are mixed, heat will transfer from the hotter substance to the cooler one until thermal equilibrium is reached, meaning both substances will eventually have the same temperature. The final temperature will depend on the masses and specific heat capacities of the substances involved, but they will not necessarily equal 25°C or 50°C unless specific conditions are met.