How to calculate the total length of the lintel for an opening

How to calculate the total length of the lintel for an opening

How to calculate the total length of the lintel for an opening