let the length of the beam be "L"
from the diagram
AD = length of beam = L
AC = CD = AD/2 = L/2
BC = AC - AB = (L/2) - 1.10
BD = AD - AB = L - 1.10
m = mass of beam = 20 kg
m₁ = mass of child on left end = 30 kg
m₂ = mass of child on right end = 40 kg
using equilibrium of torque about B
(m₁ g) (AB) = (mg) (BC) + (m₂ g) (BD)
30 (1.10) = (20) ((L/2) - 1.10) + (40) (L - 1.10)
L = 1.98 m
When you heat a certain substance with a difference of temperature

the heat (energy) you must give to it is

where

is the specific heat of that substance (given in J/(g*Celsius))
In this case

Observation: the specific heat of a substance is given in J/(g*Celsius) or J/(g*Kelvin) because on the temperature scale a
difference of 1 degree Celsius = 1 degree Kelvin
Explanation:
The acceleration g varies by about 1/2 of 1 percent with position on Earth's surface, from about 9.78 metres per second per second at the Equator to approximately 9.83 metres per second per second at the poles.