Answer
A. Metals A and metals B
Explanation
Heat transfer takes place whenever there is temperature difference. When two bodies of different temperatures are brought together, heat energy will move from one body to the other until equilibrium temperature is reached.
In our case, heat transfer will take place in all four metals.
Metal A will transfer heat to the water since it's temperature is higher than that of water.
Metal B will also transfer heat to the water since it's temperature is higher than that of water.
Metal C will get heat from the water since it's colder than the water.
Metal D will also get heat from the water since it is colder than water.