Narrative:

I [was in] a slow climb when I noticed my right engine running roughly and fluctuations in the fuel pressure. I began to become preoccupied with babying the engine; enriching the mixture; turning on the boost pump; reducing power; etc. I was distracted during this time and may have inadvertently made an incursion while climbing into the floor of class B airspace in the next two sectors; 5;000 MSL and 6;000 MSL respectively. I leveled off at 6;500 MSL after clearing all shelves of class B airspace and realized I had not been aware of my altitudes at those points. Upon arriving at [destination] my right engine failed completely. The mechanic confirmed a broken off intake fitting to the fuel pump and fuel was leaking out extensively.

Google
 

Original NASA ASRS Text

Title: A BE55 pilot became distracted dealing with engine problems which was a factor in a Class B intrusion. The engine failed completely on arrival at destination.

Narrative: I [was in] a slow climb when I noticed my right engine running roughly and fluctuations in the fuel pressure. I began to become preoccupied with babying the engine; enriching the mixture; turning on the boost pump; reducing power; etc. I was distracted during this time and may have inadvertently made an incursion while climbing into the floor of Class B airspace in the next two sectors; 5;000 MSL and 6;000 MSL respectively. I leveled off at 6;500 MSL after clearing all shelves of Class B airspace and realized I had not been aware of my altitudes at those points. Upon arriving at [destination] my right engine failed completely. The mechanic confirmed a broken off intake fitting to the fuel pump and fuel was leaking out extensively.

Data retrieved from NASA's ASRS site as of July 2013 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.