(a) Kinetic
(b) Total
(c) Mechanical
(d) Internal
When the wheel B starts spinning because of the friction at contact, it will gain kinetic energy and, hence, mechanical energy (kinetic + potential energies). Also, internal energy will increase, which increases with rise in temperature. Along with it, the generation of heat energy due to friction will lead to increase in the net sum of all the energies, i.e. total energy.