For AB
$\begin{aligned}
& \Delta \mathrm{T}_{\mathrm{b}}=2.7 \mathrm{~K} \
& 2.7=1 \times 0.5 \times \mathrm{m} \
& \mathrm{~m}=\frac{27}{5}
\end{aligned}$
Let molar mass of AB=x.
$\begin{aligned}
& \text { So } \frac{1 / x}{15} \times 1000=\frac{27}{5} \
& x=12.34
\end{aligned}$
For AB2
$\begin{aligned}
& \Delta \mathrm{T}_{\mathrm{b}}=1.5 \mathrm{~K} \
& 1.5=1 \times 0.5 \times \mathrm{m} \
& \mathrm{~m}=3
\end{aligned}$
Let molar mass of AB2=y
So 151/y×1000=3
$\begin{aligned}
& y=\frac{1000}{45} \
& y=22.22
\end{aligned}$
Now let a and b be atomic masses of A and B respectively, then
$\begin{aligned}
& \mathrm{A}+\mathrm{b}=12.34 \quad...(i)\
& \mathrm{A}+2 \mathrm{b}=22.22 \quad...(ii) \
& \mathrm{~B}=22.22-12.34=9.88 \
& \text { Now } \mathrm{a}=12.34-9.88=2.46 \
& =24.6 \times 10^{-1}=25 \times 10^{-1}
\end{aligned}$