Any vector can be written as components along positive X and positive Y axes.
So vector B can be written as [tex]Bcos(\theta)i+Bsin(\theta)j[/tex], where [tex]\theta[/tex] is the angle between vector and positive X axis
So vector B = [tex]18*cos(112)i+18*sin(112)j=-6.74i+16.69j[/tex]
So components of vector B along X -axis =-6.74 m
along Y-axis = 16.69 m