The temperature of a 10 m long metal bar is 15 degrees C at one end and 30 degrees C at the other end. The temperature of a 10 m long metal bar is 15 degrees C at one end and 30 degrees C at the other end. Assuming that the temperature increases linearly from the cooler end to the hotter end, what is the average temperature of the bar?