I was told the answer was 2/5, but I don't understand how they got this.
Here's what I worked out:
A = last toss is tails
B = 30 of the 50 tosses are heads
P(A|B) = P(AB) / P(B)
P(AB) = (1/2)^50 * (49 choose 29)
P(B) = (1/2)^50 * (50 choose 30)
which gives me 3/5.