For this case, the first thing to do is to use the law of cosine to determine the distance from B to the intersection.
We have then:

Then, we know that by definition:
t = d / v
Where,
t: time
d: distance
v: speed
For car A we have:

For car B we have:
Answer:
car A will reach the intersection first