A person randomly chooses a battery from a store which has 80 batteries of type A and 260 batteries of type B. Battery life of type A and type B batteries are exponentially distributed with average life of 8.0 years and 13.0 years, respectively. If the chosen battery lasts for 5 years, what is the probability that the battery is of type A?
Define random variable $X$ and $Y$ such that $$ X = \begin{cases} 1, & \text{if the battery if of type A} \\ 0, & \text{if the battery if of type B} \end{cases} $$ $$Y = \text{Lifespan of a battery}$$
In the answer sheet they have used $f_{Y|X}(y) = \lambda e^{-\lambda y}$, where they put $y = 5$ to get the answer. But I studied that the probability of a continuous random variable at a given point is $0$. So I did it like this $P(X = 1 | Y \ge 5)$ to find the answer. Why they have done that and what's the correct way to solve this question? I am really confused between these concepts.