Neither

.
BAH-DOH is only 625 miles, so earns 40TPs in J. DOH-LHR gets 140 because it's over 2000 miles. You get the return as well, so 360 TPs in total.
Lots of information in the Dashboard here (see the sticky link at the top of the forum) or use the Avios calculator in the Exec Club section on BA.com, entering each flight separately.