there are four engineers travelling in a car; a mechanical engineer, a chemical engineer, an electrical engineer and a computer…