This is a rate times time problem. The rate for Barry is 1 job per 7 hours and the rate for Samuel is 1 job per 11 hours. They each work for H hours. The equation to be solved is (1/7)H + (1/11) H = 1.
Multiply each side by the common denominator or 77.
11 H + 7 H = 77
18 H = 77
H = 77/18 or 4 5/18 hours
or 4 hours and (5/18 )(60) for minutes and 12 (60)/18 for seconds (the 12 remainder as a fraction was 12/18)
4 hours 16 minutes 4 seconds.