a. We only provide a proof for the configuration as shown. The other cases are similar.
Let X and Y be any points on the tangent at R to (ABR) and the tangent at Q to (ABQ) respectively as shown. We have
∠MBR=∠MAR=∠YQA=∠QBA,
and so
∠XRA=∠RBA=∠RBQ+∠QBA=∠RBQ+∠MBR=∠MBQ=∠KAQ=∠KAR.
This implies RX∥KA.

b. Let the tangent at R to (ABR) and the tangent at Q to (ABQ) meet at S. Since
∠BRS=∠BAR=∠BAQ=∠BQS,
the points Q, B, S, R are concyclic. This implies
∠SBR=∠SQR=∠MBR,
and hence S, M, B are collinear. Thus, the two tangents and KM are concurrent.