Hi Sage -- why cant B be interpreted in this format (X and Y markers listed below)
Scientists at the Los Alamos National Laboratory have succeeded for the first time in mining heat from the Earth’s interior and producing enough energy on a commercial scale
for electricity to be generated efficiently ( = X marker)
and
to heat factories and homes. ( = Y marker)
X and Y markers are prepositional phrases hence grammatically similar in terms of structure