SSC CGL 202211)A and B entered into a partnership with investments in the ratio 3 ∶ 5. After a few months, A withdrew and collected his money back. At the end of the year, they received profit in the ratio 2 ∶ 5. For how many months did A invest?
8