We can solve the problem by using the first law of thermodynamics:

where
is the variation of internal energy of the system
Q is the heat added to the system
W is the work done by the system
In this problem, the variation of internal energy of the system is

While the heat added to the system is

therefore, the work done by the system is

Friction is the force you get when you (for example) Rub something with another, it's a force that may generate heat and even some resistance. Another example is rubbing your hands together, they get hot, therefore friction is working, without friction you wouldn't be able to stop moving.
Roughly 13.8 billion years old according to science