Heathrow to central London is the Elizabeth line or Piccadilly line, about 45 to 60 minutes.
Tap a contactless card on the Tube and buses. For The O2, the Jubilee line to North Greenwich drops you at the door.
Plan your route to The O2 ahead of time, and leave early to beat the crowds.