The infrared spectra of two organic compounds, A and B, are recorded. The table shows the key absorption bands and their intensities.
| Compound | Absorption bands / cm (appearance) |
|---|---|
| A | 2950 (weak), 3200–3500 (strong, broad), 1050 (strong) |
| B | 2950 (weak), 2720 (weak), 2820 (weak), 1710 (strong) |
Compare the IR spectra of A and B and identify the functional groups present in each compound.