Let molecular weight of A is a gram
let molecular weight of B is b gram
we need to find a:b.
we know that pressure is proportional to the number of moles present.
when pressure was 1 atm, no. of moles = 2/a moles
when pressure was 1.5 atm, no. of moles = (2/a + 3/b) moles