Answer:
See explanation
Step-by-step explanation:
One basic thing that we must keep in mind is that A and B are both dienes.
The NMR spectrum and absorption maxima of A and B indicates that A may be a conjugated diene while B may be an isolated diene.
Remember that conjugated dienes shift the absorption maxima to longer wavelengths due to π - π* transition.
The two structures attached may suffice for compounds A and B