The correct response is:
After some time passes, the substances will reach the same temperature.
This is because thermal equilibrium will be reached when heat energy is transferred between the two substances until they are at the same temperature. The specific final temperature will depend on the initial temperatures and heat capacities of substances A and B but it won't necessarily be 50°C or 25°C specifically unless those are the initial temperatures and specific conditions were given.