Score two points for Team A in both
(a) and
(b). The throw-in ended when the ball was touched by an inbounds player and the live ball subsequently passed through the basket. The fact it was not a tap or a try for goal does not affect the scoring of two points.