On a try, the ball is somehow declared dead in A's possession in their own end zone. Most likely situation is B gains possession, returns the ball deep into A territory, A regains possession, A retreats into their own end zone where the ball is declared dead. Although I guess you could have a QB who scrambled too much and should have thrown the ball away somewhere within the first 97 yards.